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 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2672 | 2672 |
2673 EXPECT_CALL(*command_buffer(), OnFlush()) | 2673 EXPECT_CALL(*command_buffer(), OnFlush()) |
2674 .WillOnce(SetMemory(result1.ptr, uint32_t(GL_TRUE))) | 2674 .WillOnce(SetMemory(result1.ptr, uint32_t(GL_TRUE))) |
2675 .RetiresOnSaturation(); | 2675 .RetiresOnSaturation(); |
2676 | 2676 |
2677 GLboolean result = gl_->IsVertexArrayOES(1); | 2677 GLboolean result = gl_->IsVertexArrayOES(1); |
2678 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2678 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2679 EXPECT_TRUE(result); | 2679 EXPECT_TRUE(result); |
2680 } | 2680 } |
2681 | 2681 |
| 2682 TEST_F(GLES2ImplementationTest, FlushMappedBufferRange) { |
| 2683 struct Cmds { |
| 2684 cmds::FlushMappedBufferRange cmd; |
| 2685 }; |
| 2686 Cmds expected; |
| 2687 expected.cmd.Init(GL_ARRAY_BUFFER, 2, 3); |
| 2688 |
| 2689 gl_->FlushMappedBufferRange(GL_ARRAY_BUFFER, 2, 3); |
| 2690 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2691 } |
| 2692 |
2682 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 2693 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
2683 struct Cmds { | 2694 struct Cmds { |
2684 cmds::ResizeCHROMIUM cmd; | 2695 cmds::ResizeCHROMIUM cmd; |
2685 }; | 2696 }; |
2686 Cmds expected; | 2697 Cmds expected; |
2687 expected.cmd.Init(1, 2, 3, true); | 2698 expected.cmd.Init(1, 2, 3, true); |
2688 | 2699 |
2689 gl_->ResizeCHROMIUM(1, 2, 3, true); | 2700 gl_->ResizeCHROMIUM(1, 2, 3, true); |
2690 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2701 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2691 } | 2702 } |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3027 struct Cmds { | 3038 struct Cmds { |
3028 cmds::CoverageModulationCHROMIUM cmd; | 3039 cmds::CoverageModulationCHROMIUM cmd; |
3029 }; | 3040 }; |
3030 Cmds expected; | 3041 Cmds expected; |
3031 expected.cmd.Init(GL_RGB); | 3042 expected.cmd.Init(GL_RGB); |
3032 | 3043 |
3033 gl_->CoverageModulationCHROMIUM(GL_RGB); | 3044 gl_->CoverageModulationCHROMIUM(GL_RGB); |
3034 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3045 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
3035 } | 3046 } |
3036 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3047 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |