Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_decoder_unittest_extensions_autogen.h
blob7466edb91305863fe711ec43447f8fabff11672a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 // It is included by gles2_cmd_decoder_unittest_extensions.cc
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_
15 // TODO(gman): BlitFramebufferCHROMIUM
16 // TODO(gman): RenderbufferStorageMultisampleCHROMIUM
17 // TODO(gman): RenderbufferStorageMultisampleEXT
18 // TODO(gman): FramebufferTexture2DMultisampleEXT
19 // TODO(gman): DiscardFramebufferEXTImmediate
21 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, MatrixLoadfCHROMIUMImmediateValidArgs) {
22 cmds::MatrixLoadfCHROMIUMImmediate& cmd = *GetImmediateAs<cmds::MatrixLoadfCHROMIUMImmediate>();
23 SpecializedSetup<cmds::MatrixLoadfCHROMIUMImmediate, 0>(true);
24 GLfloat temp[16] = { 0, };
25 cmd.Init(GL_PATH_PROJECTION_CHROMIUM, &temp[0]);
26 EXPECT_CALL(
27 *gl_,
28 MatrixLoadfEXT(GL_PATH_PROJECTION_CHROMIUM, reinterpret_cast<
29 GLfloat*>(ImmediateDataAddress(&cmd))));
30 EXPECT_EQ(error::kNoError,
31 ExecuteImmediateCmd(cmd, sizeof(temp)));
32 EXPECT_EQ(GL_NO_ERROR, GetGLError());
35 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, MatrixLoadIdentityCHROMIUMValidArgs) {
36 EXPECT_CALL(*gl_, MatrixLoadIdentityEXT(GL_PATH_PROJECTION_CHROMIUM));
37 SpecializedSetup<cmds::MatrixLoadIdentityCHROMIUM, 0>(true);
38 cmds::MatrixLoadIdentityCHROMIUM cmd;
39 cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
40 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
41 EXPECT_EQ(GL_NO_ERROR, GetGLError());
43 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_