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 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2348 cmds::LoseContextCHROMIUM cmd; | 2348 cmds::LoseContextCHROMIUM cmd; |
2349 }; | 2349 }; |
2350 Cmds expected; | 2350 Cmds expected; |
2351 expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_GUILTY_CONTEXT_RESET_ARB); | 2351 expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_GUILTY_CONTEXT_RESET_ARB); |
2352 | 2352 |
2353 gl_->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, | 2353 gl_->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, |
2354 GL_GUILTY_CONTEXT_RESET_ARB); | 2354 GL_GUILTY_CONTEXT_RESET_ARB); |
2355 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2355 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2356 } | 2356 } |
2357 // TODO: Implement unit test for InsertSyncPointCHROMIUM | 2357 // TODO: Implement unit test for InsertSyncPointCHROMIUM |
2358 | 2358 // TODO: Implement unit test for WaitSyncPointCHROMIUM |
2359 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) { | |
2360 struct Cmds { | |
2361 cmds::WaitSyncPointCHROMIUM cmd; | |
2362 }; | |
2363 Cmds expected; | |
2364 expected.cmd.Init(1); | |
2365 | |
2366 gl_->WaitSyncPointCHROMIUM(1); | |
2367 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | |
2368 } | |
2369 | 2359 |
2370 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) { | 2360 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) { |
2371 GLenum data[1][1] = {{0}}; | 2361 GLenum data[1][1] = {{0}}; |
2372 struct Cmds { | 2362 struct Cmds { |
2373 cmds::DrawBuffersEXTImmediate cmd; | 2363 cmds::DrawBuffersEXTImmediate cmd; |
2374 GLenum data[1][1]; | 2364 GLenum data[1][1]; |
2375 }; | 2365 }; |
2376 | 2366 |
2377 Cmds expected; | 2367 Cmds expected; |
2378 for (int ii = 0; ii < 1; ++ii) { | 2368 for (int ii = 0; ii < 1; ++ii) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 struct Cmds { | 2406 struct Cmds { |
2417 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2407 cmds::MatrixLoadIdentityCHROMIUM cmd; |
2418 }; | 2408 }; |
2419 Cmds expected; | 2409 Cmds expected; |
2420 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2410 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
2421 | 2411 |
2422 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2412 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
2423 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2413 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2424 } | 2414 } |
2425 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2415 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |