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

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

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gl_image.h 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 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 struct Cmds { 2830 struct Cmds {
2831 cmds::DiscardBackbufferCHROMIUM cmd; 2831 cmds::DiscardBackbufferCHROMIUM cmd;
2832 }; 2832 };
2833 Cmds expected; 2833 Cmds expected;
2834 expected.cmd.Init(); 2834 expected.cmd.Init();
2835 2835
2836 gl_->DiscardBackbufferCHROMIUM(); 2836 gl_->DiscardBackbufferCHROMIUM();
2837 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2837 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2838 } 2838 }
2839 2839
2840 TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) {
2841 GLuint data[1][1] = {{0}};
2842 struct Cmds {
2843 cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate cmd;
2844 GLuint data[1][1];
2845 };
2846
2847 Cmds expected;
2848 for (int ii = 0; ii < 1; ++ii) {
2849 for (int jj = 0; jj < 1; ++jj) {
2850 data[ii][jj] = static_cast<GLuint>(ii * 1 + jj);
2851 }
2852 }
2853 expected.cmd.Init(1, &data[0][0]);
2854 gl_->ScheduleCALayerInUseQueryCHROMIUM(1, &data[0][0]);
2855 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2856 }
2857
2840 TEST_F(GLES2ImplementationTest, FlushDriverCachesCHROMIUM) { 2858 TEST_F(GLES2ImplementationTest, FlushDriverCachesCHROMIUM) {
2841 struct Cmds { 2859 struct Cmds {
2842 cmds::FlushDriverCachesCHROMIUM cmd; 2860 cmds::FlushDriverCachesCHROMIUM cmd;
2843 }; 2861 };
2844 Cmds expected; 2862 Cmds expected;
2845 expected.cmd.Init(); 2863 expected.cmd.Init();
2846 2864
2847 gl_->FlushDriverCachesCHROMIUM(); 2865 gl_->FlushDriverCachesCHROMIUM();
2848 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2866 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2849 } 2867 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
3009 struct Cmds { 3027 struct Cmds {
3010 cmds::CoverageModulationCHROMIUM cmd; 3028 cmds::CoverageModulationCHROMIUM cmd;
3011 }; 3029 };
3012 Cmds expected; 3030 Cmds expected;
3013 expected.cmd.Init(GL_RGB); 3031 expected.cmd.Init(GL_RGB);
3014 3032
3015 gl_->CoverageModulationCHROMIUM(GL_RGB); 3033 gl_->CoverageModulationCHROMIUM(GL_RGB);
3016 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3034 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3017 } 3035 }
3018 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3036 #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