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
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
,
22 MatrixLoadfCHROMIUMImmediateValidArgs
) {
23 cmds::MatrixLoadfCHROMIUMImmediate
& cmd
=
24 *GetImmediateAs
<cmds::MatrixLoadfCHROMIUMImmediate
>();
25 SpecializedSetup
<cmds::MatrixLoadfCHROMIUMImmediate
, 0>(true);
29 cmd
.Init(GL_PATH_PROJECTION_CHROMIUM
, &temp
[0]);
32 MatrixLoadfEXT(GL_PATH_PROJECTION_CHROMIUM
,
33 reinterpret_cast<GLfloat
*>(ImmediateDataAddress(&cmd
))));
34 EXPECT_EQ(error::kNoError
, ExecuteImmediateCmd(cmd
, sizeof(temp
)));
35 EXPECT_EQ(GL_NO_ERROR
, GetGLError());
38 TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering
,
39 MatrixLoadIdentityCHROMIUMValidArgs
) {
40 EXPECT_CALL(*gl_
, MatrixLoadIdentityEXT(GL_PATH_PROJECTION_CHROMIUM
));
41 SpecializedSetup
<cmds::MatrixLoadIdentityCHROMIUM
, 0>(true);
42 cmds::MatrixLoadIdentityCHROMIUM cmd
;
43 cmd
.Init(GL_PATH_PROJECTION_CHROMIUM
);
44 EXPECT_EQ(error::kNoError
, ExecuteCmd(cmd
));
45 EXPECT_EQ(GL_NO_ERROR
, GetGLError());
48 TEST_P(GLES2DecoderTestWithBlendEquationAdvanced
, BlendBarrierKHRValidArgs
) {
49 EXPECT_CALL(*gl_
, BlendBarrierKHR());
50 SpecializedSetup
<cmds::BlendBarrierKHR
, 0>(true);
51 cmds::BlendBarrierKHR cmd
;
53 EXPECT_EQ(error::kNoError
, ExecuteCmd(cmd
));
54 EXPECT_EQ(GL_NO_ERROR
, GetGLError());
56 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_