| 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 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 struct Cmds { | 2217 struct Cmds { |
| 2218 cmds::CopyTextureCHROMIUM cmd; | 2218 cmds::CopyTextureCHROMIUM cmd; |
| 2219 }; | 2219 }; |
| 2220 Cmds expected; | 2220 Cmds expected; |
| 2221 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); | 2221 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
| 2222 | 2222 |
| 2223 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); | 2223 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
| 2224 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2224 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2225 } | 2225 } |
| 2226 | 2226 |
| 2227 TEST_F(GLES2ImplementationTest, CopyCompressedTextureCHROMIUM) { |
| 2228 struct Cmds { |
| 2229 cmds::CopyCompressedTextureCHROMIUM cmd; |
| 2230 }; |
| 2231 Cmds expected; |
| 2232 expected.cmd.Init(1, 2, 3, 4, GL_UNSIGNED_BYTE); |
| 2233 |
| 2234 gl_->CopyCompressedTextureCHROMIUM(1, 2, 3, 4, GL_UNSIGNED_BYTE); |
| 2235 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2236 } |
| 2237 |
| 2227 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2238 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
| 2228 struct Cmds { | 2239 struct Cmds { |
| 2229 cmds::DrawArraysInstancedANGLE cmd; | 2240 cmds::DrawArraysInstancedANGLE cmd; |
| 2230 }; | 2241 }; |
| 2231 Cmds expected; | 2242 Cmds expected; |
| 2232 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2243 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
| 2233 | 2244 |
| 2234 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2245 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
| 2235 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2246 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2236 } | 2247 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2463 struct Cmds { | 2474 struct Cmds { |
| 2464 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2475 cmds::MatrixLoadIdentityCHROMIUM cmd; |
| 2465 }; | 2476 }; |
| 2466 Cmds expected; | 2477 Cmds expected; |
| 2467 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2478 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
| 2468 | 2479 |
| 2469 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2480 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
| 2470 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2481 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2471 } | 2482 } |
| 2472 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2483 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |