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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h

Issue 7099007: Enforce RGB even on buggy drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add checks for reading GL_ALPHA_BITS etc. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h
index 477c3bf2cade3abda74d13a7d1f8bd22a07805ba..58f5a8649f8cd9a4d73564b32f3078ea114bbf24 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h
@@ -326,10 +326,9 @@ TEST_F(GLES2DecoderTest1, ClearStencilValidArgs) {
}
TEST_F(GLES2DecoderTest1, ColorMaskValidArgs) {
- EXPECT_CALL(*gl_, ColorMask(1, 2, 3, 4));
SpecializedSetup<ColorMask, 0>(true);
ColorMask cmd;
- cmd.Init(1, 2, 3, 4);
+ cmd.Init(true, true, true, true);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -642,10 +641,9 @@ TEST_F(GLES2DecoderTest1, DepthFuncValidArgs) {
}
TEST_F(GLES2DecoderTest1, DepthMaskValidArgs) {
- EXPECT_CALL(*gl_, DepthMask(1));
SpecializedSetup<DepthMask, 0>(true);
DepthMask cmd;
- cmd.Init(1);
+ cmd.Init(true);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}

Powered by Google App Engine
This is Rietveld 408576698