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

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

Issue 1320093002: Command Buffer: read pixels into pixel pack buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more unittests Created 5 years 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 c704c285820ed0ae98fa700f59888b0a2f3c7600..ebb3d6055ab12c033d22a99bb4bc89c28fcb3c6e 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
@@ -830,6 +830,17 @@ void GLES2DecoderTestBase::DoBindBuffer(
EXPECT_CALL(*gl_, BindBuffer(target, service_id))
.Times(1)
.RetiresOnSaturation();
+ if (target == GL_PIXEL_PACK_BUFFER) {
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ROW_LENGTH, _))
+ .Times(1)
+ .RetiresOnSaturation();
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_PIXELS, _))
+ .Times(1)
+ .RetiresOnSaturation();
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_ROWS, _))
+ .Times(1)
+ .RetiresOnSaturation();
+ }
cmds::BindBuffer cmd;
cmd.Init(target, client_id);
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));

Powered by Google App Engine
This is Rietveld 408576698