OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
11 // It is included by gles2_cmd_decoder_unittest_3.cc | 11 // It is included by gles2_cmd_decoder_unittest_3.cc |
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ | 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ | 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
14 | 14 |
| 15 TEST_P(GLES2DecoderTest3, VertexAttribI4iValidArgs) { |
| 16 EXPECT_CALL(*gl_, VertexAttribI4i(1, 2, 3, 4, 5)); |
| 17 SpecializedSetup<cmds::VertexAttribI4i, 0>(true); |
| 18 cmds::VertexAttribI4i cmd; |
| 19 cmd.Init(1, 2, 3, 4, 5); |
| 20 decoder_->set_unsafe_es3_apis_enabled(true); |
| 21 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 22 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 23 decoder_->set_unsafe_es3_apis_enabled(false); |
| 24 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); |
| 25 } |
| 26 |
15 TEST_P(GLES2DecoderTest3, VertexAttribI4ivImmediateValidArgs) { | 27 TEST_P(GLES2DecoderTest3, VertexAttribI4ivImmediateValidArgs) { |
16 cmds::VertexAttribI4ivImmediate& cmd = | 28 cmds::VertexAttribI4ivImmediate& cmd = |
17 *GetImmediateAs<cmds::VertexAttribI4ivImmediate>(); | 29 *GetImmediateAs<cmds::VertexAttribI4ivImmediate>(); |
18 SpecializedSetup<cmds::VertexAttribI4ivImmediate, 0>(true); | 30 SpecializedSetup<cmds::VertexAttribI4ivImmediate, 0>(true); |
19 GLint temp[4] = { | 31 GLint temp[4] = { |
20 0, | 32 0, |
21 }; | 33 }; |
22 cmd.Init(1, &temp[0]); | 34 cmd.Init(1, &temp[0]); |
23 EXPECT_CALL(*gl_, VertexAttribI4iv(1, reinterpret_cast<GLint*>( | 35 EXPECT_CALL(*gl_, VertexAttribI4iv(1, reinterpret_cast<GLint*>( |
24 ImmediateDataAddress(&cmd)))); | 36 ImmediateDataAddress(&cmd)))); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // TODO(gman): InsertSyncPointCHROMIUM | 212 // TODO(gman): InsertSyncPointCHROMIUM |
201 | 213 |
202 // TODO(gman): WaitSyncPointCHROMIUM | 214 // TODO(gman): WaitSyncPointCHROMIUM |
203 | 215 |
204 // TODO(gman): DrawBuffersEXTImmediate | 216 // TODO(gman): DrawBuffersEXTImmediate |
205 // TODO(gman): DiscardBackbufferCHROMIUM | 217 // TODO(gman): DiscardBackbufferCHROMIUM |
206 | 218 |
207 // TODO(gman): ScheduleOverlayPlaneCHROMIUM | 219 // TODO(gman): ScheduleOverlayPlaneCHROMIUM |
208 // TODO(gman): SwapInterval | 220 // TODO(gman): SwapInterval |
209 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ | 221 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
OLD | NEW |