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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc

Issue 2827573007: Reset TexImage2D base level to workaround Intel mac driver bug (Closed)
Patch Set: Add gpu unittests Created 3 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_base.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
index 79d67d33d9aa578e4203efbb36e9a16836d3ba87..e2e7777272cf2f215bd30321fe38f8680166b69e 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
@@ -1249,6 +1249,17 @@ void GLES2DecoderTestBase::DoBindTexture(
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
}
+void GLES2DecoderTestBase::DoTexParameteri(GLenum target,
+ GLenum pname,
+ GLint paramGLuint) {
+ EXPECT_CALL(*gl_, TexParameteri(target, pname, paramGLuint))
+ .Times(1)
+ .RetiresOnSaturation();
+ cmds::TexParameteri cmd;
+ cmd.Init(target, pname, paramGLuint);
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
+}
+
bool GLES2DecoderTestBase::DoIsTexture(GLuint client_id) {
return IsObjectHelper<cmds::IsTexture, cmds::IsTexture::Result>(client_id);
}

Powered by Google App Engine
This is Rietveld 408576698