| 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 // This file is included by gles2_implementation.h to declare the | 9 // This file is included by gles2_implementation.h to declare the |
| 10 // GL api functions. | 10 // GL api functions. |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 364 |
| 365 gl_->DetachShader(1, 2); | 365 gl_->DetachShader(1, 2); |
| 366 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 366 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 367 } | 367 } |
| 368 | 368 |
| 369 TEST_F(GLES2ImplementationTest, Disable) { | 369 TEST_F(GLES2ImplementationTest, Disable) { |
| 370 struct Cmds { | 370 struct Cmds { |
| 371 Disable cmd; | 371 Disable cmd; |
| 372 }; | 372 }; |
| 373 Cmds expected; | 373 Cmds expected; |
| 374 expected.cmd.Init(GL_DITHER); | 374 expected.cmd.Init(GL_BLEND); |
| 375 | 375 |
| 376 gl_->Disable(GL_DITHER); | 376 gl_->Disable(GL_BLEND); |
| 377 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 377 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 378 } | 378 } |
| 379 | 379 |
| 380 TEST_F(GLES2ImplementationTest, DisableVertexAttribArray) { | 380 TEST_F(GLES2ImplementationTest, DisableVertexAttribArray) { |
| 381 struct Cmds { | 381 struct Cmds { |
| 382 DisableVertexAttribArray cmd; | 382 DisableVertexAttribArray cmd; |
| 383 }; | 383 }; |
| 384 Cmds expected; | 384 Cmds expected; |
| 385 expected.cmd.Init(1); | 385 expected.cmd.Init(1); |
| 386 | 386 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 397 | 397 |
| 398 gl_->DrawArrays(GL_POINTS, 2, 3); | 398 gl_->DrawArrays(GL_POINTS, 2, 3); |
| 399 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 399 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 400 } | 400 } |
| 401 | 401 |
| 402 TEST_F(GLES2ImplementationTest, Enable) { | 402 TEST_F(GLES2ImplementationTest, Enable) { |
| 403 struct Cmds { | 403 struct Cmds { |
| 404 Enable cmd; | 404 Enable cmd; |
| 405 }; | 405 }; |
| 406 Cmds expected; | 406 Cmds expected; |
| 407 expected.cmd.Init(GL_DITHER); | 407 expected.cmd.Init(GL_BLEND); |
| 408 | 408 |
| 409 gl_->Enable(GL_DITHER); | 409 gl_->Enable(GL_BLEND); |
| 410 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 410 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 411 } | 411 } |
| 412 | 412 |
| 413 TEST_F(GLES2ImplementationTest, EnableVertexAttribArray) { | 413 TEST_F(GLES2ImplementationTest, EnableVertexAttribArray) { |
| 414 struct Cmds { | 414 struct Cmds { |
| 415 EnableVertexAttribArray cmd; | 415 EnableVertexAttribArray cmd; |
| 416 }; | 416 }; |
| 417 Cmds expected; | 417 Cmds expected; |
| 418 expected.cmd.Init(1); | 418 expected.cmd.Init(1); |
| 419 | 419 |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 ReleaseTexImage2DCHROMIUM cmd; | 1788 ReleaseTexImage2DCHROMIUM cmd; |
| 1789 }; | 1789 }; |
| 1790 Cmds expected; | 1790 Cmds expected; |
| 1791 expected.cmd.Init(GL_TEXTURE_2D, 2); | 1791 expected.cmd.Init(GL_TEXTURE_2D, 2); |
| 1792 | 1792 |
| 1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); | 1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); |
| 1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1795 } | 1795 } |
| 1796 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1796 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| 1797 | 1797 |
| OLD | NEW |