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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_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/service/gles2_cmd_decoder_unittest_3_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h
index 54a821a413bba5c95c747e01911bacf2d3e80cc5..9000794a3964811121a83b93d7dc65d4375b236e 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h
@@ -322,6 +322,23 @@ TEST_P(GLES2DecoderTest3, SwapBuffersValidArgs) {
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
+TEST_P(GLES2DecoderTest3,
+ ScheduleCALayerFilterEffectsCHROMIUMImmediateValidArgs) {
+ cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate& cmd =
+ *GetImmediateAs<cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate>();
+ EXPECT_CALL(*gl_, ScheduleCALayerFilterEffectsCHROMIUM(
+ 1, reinterpret_cast<GLCALayerFilterEffect*>(
+ ImmediateDataAddress(&cmd))));
+ SpecializedSetup<cmds::ScheduleCALayerFilterEffectsCHROMIUMImmediate, 0>(
+ true);
+ GLCALayerFilterEffect temp[1 * 2] = {
+ 0,
+ };
+ cmd.Init(1, &temp[0]);
+ EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
+ EXPECT_EQ(GL_NO_ERROR, GetGLError());
+}
+
TEST_P(GLES2DecoderTest3, SwapIntervalValidArgs) {
SpecializedSetup<cmds::SwapInterval, 0>(true);
cmds::SwapInterval cmd;

Powered by Google App Engine
This is Rietveld 408576698