| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 // It is included by gles2_cmd_decoder_unittest_1.cc | 9 // It is included by gles2_cmd_decoder_unittest_1.cc |
| 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 TEST_F(GLES2DecoderTest1, CheckFramebufferStatusInvalidArgsBadSharedMemoryId) { | 302 TEST_F(GLES2DecoderTest1, CheckFramebufferStatusInvalidArgsBadSharedMemoryId) { |
| 303 EXPECT_CALL(*gl_, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)).Times(0); | 303 EXPECT_CALL(*gl_, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)).Times(0); |
| 304 SpecializedSetup<CheckFramebufferStatus, 0>(false); | 304 SpecializedSetup<CheckFramebufferStatus, 0>(false); |
| 305 CheckFramebufferStatus cmd; | 305 CheckFramebufferStatus cmd; |
| 306 cmd.Init(GL_FRAMEBUFFER, kInvalidSharedMemoryId, shared_memory_offset_); | 306 cmd.Init(GL_FRAMEBUFFER, kInvalidSharedMemoryId, shared_memory_offset_); |
| 307 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 307 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 308 cmd.Init(GL_FRAMEBUFFER, shared_memory_id_, kInvalidSharedMemoryOffset); | 308 cmd.Init(GL_FRAMEBUFFER, shared_memory_id_, kInvalidSharedMemoryOffset); |
| 309 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 309 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 310 } | 310 } |
| 311 // TODO(gman): Clear | |
| 312 | 311 |
| 312 TEST_F(GLES2DecoderTest1, ClearValidArgs) { |
| 313 EXPECT_CALL(*gl_, Clear(1)); |
| 314 SpecializedSetup<Clear, 0>(true); |
| 315 Clear cmd; |
| 316 cmd.Init(1); |
| 317 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 318 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 319 } |
| 313 | 320 |
| 314 TEST_F(GLES2DecoderTest1, ClearColorValidArgs) { | 321 TEST_F(GLES2DecoderTest1, ClearColorValidArgs) { |
| 315 EXPECT_CALL(*gl_, ClearColor(1, 2, 3, 4)); | 322 EXPECT_CALL(*gl_, ClearColor(1, 2, 3, 4)); |
| 316 SpecializedSetup<ClearColor, 0>(true); | 323 SpecializedSetup<ClearColor, 0>(true); |
| 317 ClearColor cmd; | 324 ClearColor cmd; |
| 318 cmd.Init(1, 2, 3, 4); | 325 cmd.Init(1, 2, 3, 4); |
| 319 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 326 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 320 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 327 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 321 } | 328 } |
| 322 | 329 |
| (...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 result->size = 0; | 1854 result->size = 0; |
| 1848 GetVertexAttribfv cmd; | 1855 GetVertexAttribfv cmd; |
| 1849 cmd.Init( | 1856 cmd.Init( |
| 1850 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, | 1857 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
| 1851 kInvalidSharedMemoryOffset); | 1858 kInvalidSharedMemoryOffset); |
| 1852 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 1859 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 1853 EXPECT_EQ(0u, result->size); | 1860 EXPECT_EQ(0u, result->size); |
| 1854 } | 1861 } |
| 1855 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 1862 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| 1856 | 1863 |
| OLD | NEW |