| 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, VertexAttribI4uivImmediateValidArgs) { |
| 16 cmds::VertexAttribI4uivImmediate& cmd = |
| 17 *GetImmediateAs<cmds::VertexAttribI4uivImmediate>(); |
| 18 SpecializedSetup<cmds::VertexAttribI4uivImmediate, 0>(true); |
| 19 GLuint temp[4] = { |
| 20 0, |
| 21 }; |
| 22 cmd.Init(1, &temp[0]); |
| 23 EXPECT_CALL(*gl_, VertexAttribI4uiv(1, reinterpret_cast<GLuint*>( |
| 24 ImmediateDataAddress(&cmd)))); |
| 25 decoder_->set_unsafe_es3_apis_enabled(true); |
| 26 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
| 27 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 28 decoder_->set_unsafe_es3_apis_enabled(false); |
| 29 EXPECT_EQ(error::kUnknownCommand, ExecuteImmediateCmd(cmd, sizeof(temp))); |
| 30 } |
| 31 // TODO(gman): VertexAttribIPointer |
| 32 |
| 15 // TODO(gman): VertexAttribPointer | 33 // TODO(gman): VertexAttribPointer |
| 16 | 34 |
| 17 TEST_P(GLES2DecoderTest3, ViewportValidArgs) { | 35 TEST_P(GLES2DecoderTest3, ViewportValidArgs) { |
| 18 EXPECT_CALL(*gl_, Viewport(1, 2, 3, 4)); | 36 EXPECT_CALL(*gl_, Viewport(1, 2, 3, 4)); |
| 19 SpecializedSetup<cmds::Viewport, 0>(true); | 37 SpecializedSetup<cmds::Viewport, 0>(true); |
| 20 cmds::Viewport cmd; | 38 cmds::Viewport cmd; |
| 21 cmd.Init(1, 2, 3, 4); | 39 cmd.Init(1, 2, 3, 4); |
| 22 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 40 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 23 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 41 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 24 } | 42 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // TODO(gman): InsertSyncPointCHROMIUM | 169 // TODO(gman): InsertSyncPointCHROMIUM |
| 152 | 170 |
| 153 // TODO(gman): WaitSyncPointCHROMIUM | 171 // TODO(gman): WaitSyncPointCHROMIUM |
| 154 | 172 |
| 155 // TODO(gman): DrawBuffersEXTImmediate | 173 // TODO(gman): DrawBuffersEXTImmediate |
| 156 // TODO(gman): DiscardBackbufferCHROMIUM | 174 // TODO(gman): DiscardBackbufferCHROMIUM |
| 157 | 175 |
| 158 // TODO(gman): ScheduleOverlayPlaneCHROMIUM | 176 // TODO(gman): ScheduleOverlayPlaneCHROMIUM |
| 159 // TODO(gman): SwapInterval | 177 // TODO(gman): SwapInterval |
| 160 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ | 178 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
| OLD | NEW |