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

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

Issue 2175043002: Add command buffer function glScheduleCALayerFilterEffectsCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blah nits. Created 4 years, 5 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, ScheduleCALayerFilterEffectsCHROMIUM) {
2841 GLCALayerFilterEffect data[1][1] = {{0}};
2842 struct Cmds {
2843 cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate cmd;
2844 GLCALayerFilterEffect 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<GLCALayerFilterEffect>(ii * 1 + jj);
2851 }
2852 }
2853 expected.cmd.Init(1, &data[0][0]);
2854 gl_->ScheduleCALayerFilterEffectsCHROMIUM(1, &data[0][0]);
2855 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2856 }
2857
2840 TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) { 2858 TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) {
2841 GLuint data[1][1] = {{0}}; 2859 GLuint data[1][1] = {{0}};
2842 struct Cmds { 2860 struct Cmds {
2843 cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate cmd; 2861 cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate cmd;
2844 GLuint data[1][1]; 2862 GLuint data[1][1];
2845 }; 2863 };
2846 2864
2847 Cmds expected; 2865 Cmds expected;
2848 for (int ii = 0; ii < 1; ++ii) { 2866 for (int ii = 0; ii < 1; ++ii) {
2849 for (int jj = 0; jj < 1; ++jj) { 2867 for (int jj = 0; jj < 1; ++jj) {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
3027 struct Cmds { 3045 struct Cmds {
3028 cmds::CoverageModulationCHROMIUM cmd; 3046 cmds::CoverageModulationCHROMIUM cmd;
3029 }; 3047 };
3030 Cmds expected; 3048 Cmds expected;
3031 expected.cmd.Init(GL_RGB); 3049 expected.cmd.Init(GL_RGB);
3032 3050
3033 gl_->CoverageModulationCHROMIUM(GL_RGB); 3051 gl_->CoverageModulationCHROMIUM(GL_RGB);
3034 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3052 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3035 } 3053 }
3036 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3054 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698