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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
index 8507032b7e0adb84419fd9d225eb445fd32e7c67..3a0454b9e3433384f4315cb12ae2ff6c242e9bc8 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
@@ -2837,6 +2837,24 @@ TEST_F(GLES2ImplementationTest, DiscardBackbufferCHROMIUM) {
EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
}
+TEST_F(GLES2ImplementationTest, ScheduleCALayerFilterEffectsCHROMIUM) {
+ GLCALayerFilterEffect data[1][1] = {{0}};
+ struct Cmds {
+ cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate cmd;
+ GLCALayerFilterEffect data[1][1];
+ };
+
+ Cmds expected;
+ for (int ii = 0; ii < 1; ++ii) {
+ for (int jj = 0; jj < 1; ++jj) {
+ data[ii][jj] = static_cast<GLCALayerFilterEffect>(ii * 1 + jj);
+ }
+ }
+ expected.cmd.Init(1, &data[0][0]);
+ gl_->ScheduleCALayerFilterEffectsCHROMIUM(1, &data[0][0]);
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
+}
+
TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) {
GLuint data[1][1] = {{0}};
struct Cmds {

Powered by Google App Engine
This is Rietveld 408576698