| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 Cmds expected; | 32 Cmds expected; |
| 33 expected.cmd.Init(GL_ARRAY_BUFFER, 2); | 33 expected.cmd.Init(GL_ARRAY_BUFFER, 2); |
| 34 | 34 |
| 35 gl_->BindBuffer(GL_ARRAY_BUFFER, 2); | 35 gl_->BindBuffer(GL_ARRAY_BUFFER, 2); |
| 36 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 36 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 37 ClearCommands(); | 37 ClearCommands(); |
| 38 gl_->BindBuffer(GL_ARRAY_BUFFER, 2); | 38 gl_->BindBuffer(GL_ARRAY_BUFFER, 2); |
| 39 EXPECT_TRUE(NoCommandsWritten()); | 39 EXPECT_TRUE(NoCommandsWritten()); |
| 40 } | 40 } |
| 41 | 41 |
| 42 TEST_F(GLES2ImplementationTest, BindBufferBase) { |
| 43 struct Cmds { |
| 44 cmds::BindBufferBase cmd; |
| 45 }; |
| 46 Cmds expected; |
| 47 expected.cmd.Init(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3); |
| 48 |
| 49 gl_->BindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3); |
| 50 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 51 } |
| 52 |
| 42 TEST_F(GLES2ImplementationTest, BindFramebuffer) { | 53 TEST_F(GLES2ImplementationTest, BindFramebuffer) { |
| 43 struct Cmds { | 54 struct Cmds { |
| 44 cmds::BindFramebuffer cmd; | 55 cmds::BindFramebuffer cmd; |
| 45 }; | 56 }; |
| 46 Cmds expected; | 57 Cmds expected; |
| 47 expected.cmd.Init(GL_FRAMEBUFFER, 2); | 58 expected.cmd.Init(GL_FRAMEBUFFER, 2); |
| 48 | 59 |
| 49 gl_->BindFramebuffer(GL_FRAMEBUFFER, 2); | 60 gl_->BindFramebuffer(GL_FRAMEBUFFER, 2); |
| 50 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 61 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 51 ClearCommands(); | 62 ClearCommands(); |
| (...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 struct Cmds { | 2730 struct Cmds { |
| 2720 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2731 cmds::MatrixLoadIdentityCHROMIUM cmd; |
| 2721 }; | 2732 }; |
| 2722 Cmds expected; | 2733 Cmds expected; |
| 2723 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2734 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
| 2724 | 2735 |
| 2725 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2736 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
| 2726 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2737 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2727 } | 2738 } |
| 2728 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2739 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |