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

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

Issue 11363191: Cache more GL state both service and client side. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 8e2a9193f298e638ca2ae32d2b723b823ca1227f..7e817667e43637c83b3518ad94d230aa64df9229 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
@@ -175,10 +175,10 @@ TEST_F(GLES2DecoderTest1, BlendColorValidArgs) {
}
TEST_F(GLES2DecoderTest1, BlendEquationValidArgs) {
- EXPECT_CALL(*gl_, BlendEquation(GL_FUNC_ADD));
+ EXPECT_CALL(*gl_, BlendEquation(GL_FUNC_SUBTRACT));
SpecializedSetup<BlendEquation, 0>(true);
BlendEquation cmd;
- cmd.Init(GL_FUNC_ADD);
+ cmd.Init(GL_FUNC_SUBTRACT);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -202,10 +202,10 @@ TEST_F(GLES2DecoderTest1, BlendEquationInvalidArgs0_1) {
}
TEST_F(GLES2DecoderTest1, BlendEquationSeparateValidArgs) {
- EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD));
+ EXPECT_CALL(*gl_, BlendEquationSeparate(GL_FUNC_SUBTRACT, GL_FUNC_ADD));
SpecializedSetup<BlendEquationSeparate, 0>(true);
BlendEquationSeparate cmd;
- cmd.Init(GL_FUNC_ADD, GL_FUNC_ADD);
+ cmd.Init(GL_FUNC_SUBTRACT, GL_FUNC_ADD);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}
@@ -232,7 +232,7 @@ TEST_F(GLES2DecoderTest1, BlendEquationSeparateInvalidArgs1_0) {
EXPECT_CALL(*gl_, BlendEquationSeparate(_, _)).Times(0);
SpecializedSetup<BlendEquationSeparate, 0>(false);
BlendEquationSeparate cmd;
- cmd.Init(GL_FUNC_ADD, GL_MIN);
+ cmd.Init(GL_FUNC_SUBTRACT, GL_MIN);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
}
@@ -241,7 +241,7 @@ TEST_F(GLES2DecoderTest1, BlendEquationSeparateInvalidArgs1_1) {
EXPECT_CALL(*gl_, BlendEquationSeparate(_, _)).Times(0);
SpecializedSetup<BlendEquationSeparate, 0>(false);
BlendEquationSeparate cmd;
- cmd.Init(GL_FUNC_ADD, GL_MAX);
+ cmd.Init(GL_FUNC_SUBTRACT, GL_MAX);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_INVALID_ENUM, GetGLError());
}
@@ -321,10 +321,10 @@ TEST_F(GLES2DecoderTest1, ClearColorValidArgs) {
}
TEST_F(GLES2DecoderTest1, ClearDepthfValidArgs) {
- EXPECT_CALL(*gl_, ClearDepth(1));
+ EXPECT_CALL(*gl_, ClearDepth(0.5f));
SpecializedSetup<ClearDepthf, 0>(true);
ClearDepthf cmd;
- cmd.Init(1);
+ cmd.Init(0.5f);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
EXPECT_EQ(GL_NO_ERROR, GetGLError());
}

Powered by Google App Engine
This is Rietveld 408576698