| 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 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2838 struct Cmds { | 2838 struct Cmds { |
| 2839 cmds::ResizeCHROMIUM cmd; | 2839 cmds::ResizeCHROMIUM cmd; |
| 2840 }; | 2840 }; |
| 2841 Cmds expected; | 2841 Cmds expected; |
| 2842 expected.cmd.Init(1, 2, 3); | 2842 expected.cmd.Init(1, 2, 3); |
| 2843 | 2843 |
| 2844 gl_->ResizeCHROMIUM(1, 2, 3); | 2844 gl_->ResizeCHROMIUM(1, 2, 3); |
| 2845 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2845 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2846 } | 2846 } |
| 2847 // TODO(zmo): Implement unit test for GetRequestableExtensionsCHROMIUM | 2847 // TODO(zmo): Implement unit test for GetRequestableExtensionsCHROMIUM |
| 2848 // TODO(zmo): Implement unit test for CreateStreamTextureCHROMIUM | |
| 2849 // TODO(zmo): Implement unit test for GetTranslatedShaderSourceANGLE | 2848 // TODO(zmo): Implement unit test for GetTranslatedShaderSourceANGLE |
| 2850 | 2849 |
| 2851 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { | 2850 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { |
| 2852 struct Cmds { | 2851 struct Cmds { |
| 2853 cmds::TexImageIOSurface2DCHROMIUM cmd; | 2852 cmds::TexImageIOSurface2DCHROMIUM cmd; |
| 2854 }; | 2853 }; |
| 2855 Cmds expected; | 2854 Cmds expected; |
| 2856 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); | 2855 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); |
| 2857 | 2856 |
| 2858 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); | 2857 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3289 struct Cmds { | 3288 struct Cmds { |
| 3290 cmds::StencilThenCoverStrokePathCHROMIUM cmd; | 3289 cmds::StencilThenCoverStrokePathCHROMIUM cmd; |
| 3291 }; | 3290 }; |
| 3292 Cmds expected; | 3291 Cmds expected; |
| 3293 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3292 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3294 | 3293 |
| 3295 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3294 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3296 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3295 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3297 } | 3296 } |
| 3298 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3297 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |