| 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 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 GLboolean result = gl_->IsVertexArrayOES(1); | 2785 GLboolean result = gl_->IsVertexArrayOES(1); |
| 2786 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2786 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2787 EXPECT_TRUE(result); | 2787 EXPECT_TRUE(result); |
| 2788 } | 2788 } |
| 2789 | 2789 |
| 2790 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 2790 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
| 2791 struct Cmds { | 2791 struct Cmds { |
| 2792 cmds::ResizeCHROMIUM cmd; | 2792 cmds::ResizeCHROMIUM cmd; |
| 2793 }; | 2793 }; |
| 2794 Cmds expected; | 2794 Cmds expected; |
| 2795 expected.cmd.Init(1, 2, 3); | 2795 expected.cmd.Init(1, 2, 3, true); |
| 2796 | 2796 |
| 2797 gl_->ResizeCHROMIUM(1, 2, 3); | 2797 gl_->ResizeCHROMIUM(1, 2, 3, true); |
| 2798 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2798 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2799 } | 2799 } |
| 2800 | 2800 |
| 2801 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { | 2801 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { |
| 2802 struct Cmds { | 2802 struct Cmds { |
| 2803 cmds::TexImageIOSurface2DCHROMIUM cmd; | 2803 cmds::TexImageIOSurface2DCHROMIUM cmd; |
| 2804 }; | 2804 }; |
| 2805 Cmds expected; | 2805 Cmds expected; |
| 2806 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); | 2806 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); |
| 2807 | 2807 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3220 struct Cmds { | 3220 struct Cmds { |
| 3221 cmds::StencilThenCoverStrokePathCHROMIUM cmd; | 3221 cmds::StencilThenCoverStrokePathCHROMIUM cmd; |
| 3222 }; | 3222 }; |
| 3223 Cmds expected; | 3223 Cmds expected; |
| 3224 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3224 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3225 | 3225 |
| 3226 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3226 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3227 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3227 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3228 } | 3228 } |
| 3229 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3229 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |