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 2856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2867 |
2868 gl_->CopyTextureCHROMIUM(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE); | 2868 gl_->CopyTextureCHROMIUM(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE); |
2869 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2869 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2870 } | 2870 } |
2871 | 2871 |
2872 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { | 2872 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { |
2873 struct Cmds { | 2873 struct Cmds { |
2874 cmds::CopySubTextureCHROMIUM cmd; | 2874 cmds::CopySubTextureCHROMIUM cmd; |
2875 }; | 2875 }; |
2876 Cmds expected; | 2876 Cmds expected; |
2877 expected.cmd.Init(1, 2, 3, 4, 5); | 2877 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9); |
2878 | 2878 |
2879 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5); | 2879 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9); |
2880 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2880 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2881 } | 2881 } |
2882 | 2882 |
2883 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2883 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
2884 struct Cmds { | 2884 struct Cmds { |
2885 cmds::DrawArraysInstancedANGLE cmd; | 2885 cmds::DrawArraysInstancedANGLE cmd; |
2886 }; | 2886 }; |
2887 Cmds expected; | 2887 Cmds expected; |
2888 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2888 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
2889 | 2889 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 struct Cmds { | 3119 struct Cmds { |
3120 cmds::MatrixLoadIdentityCHROMIUM cmd; | 3120 cmds::MatrixLoadIdentityCHROMIUM cmd; |
3121 }; | 3121 }; |
3122 Cmds expected; | 3122 Cmds expected; |
3123 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 3123 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
3124 | 3124 |
3125 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 3125 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
3126 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3126 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
3127 } | 3127 } |
3128 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3128 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |