Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 2021603002: gpu: Add a new extension CHROMIUM_deschedule. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 struct Cmds { 2683 struct Cmds {
2684 cmds::ResizeCHROMIUM cmd; 2684 cmds::ResizeCHROMIUM cmd;
2685 }; 2685 };
2686 Cmds expected; 2686 Cmds expected;
2687 expected.cmd.Init(1, 2, 3, true); 2687 expected.cmd.Init(1, 2, 3, true);
2688 2688
2689 gl_->ResizeCHROMIUM(1, 2, 3, true); 2689 gl_->ResizeCHROMIUM(1, 2, 3, true);
2690 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2690 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2691 } 2691 }
2692 2692
2693 TEST_F(GLES2ImplementationTest, DescheduleUntilFinishedCHROMIUM) {
2694 struct Cmds {
2695 cmds::DescheduleUntilFinishedCHROMIUM cmd;
2696 };
2697 Cmds expected;
2698 expected.cmd.Init();
2699
2700 gl_->DescheduleUntilFinishedCHROMIUM();
2701 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2702 }
2703
2693 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { 2704 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) {
2694 struct Cmds { 2705 struct Cmds {
2695 cmds::TexImageIOSurface2DCHROMIUM cmd; 2706 cmds::TexImageIOSurface2DCHROMIUM cmd;
2696 }; 2707 };
2697 Cmds expected; 2708 Cmds expected;
2698 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); 2709 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5);
2699 2710
2700 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); 2711 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5);
2701 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2712 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2702 } 2713 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3009 struct Cmds { 3020 struct Cmds {
3010 cmds::CoverageModulationCHROMIUM cmd; 3021 cmds::CoverageModulationCHROMIUM cmd;
3011 }; 3022 };
3012 Cmds expected; 3023 Cmds expected;
3013 expected.cmd.Init(GL_RGB); 3024 expected.cmd.Init(GL_RGB);
3014 3025
3015 gl_->CoverageModulationCHROMIUM(GL_RGB); 3026 gl_->CoverageModulationCHROMIUM(GL_RGB);
3016 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3027 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3017 } 3028 }
3018 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3029 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_autogen.h ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698