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

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

Issue 1922633002: Implement TransformFeedbackManager in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 bbd35ecf8b5596cb53a047b0cd54c22dda48311b..d767225124a81872034aaa16b7b8d660f6fd31df 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
@@ -243,6 +243,14 @@ void GLES2DecoderTestBase::InitDecoderWithCommandLine(
EXPECT_CALL(*gl_, GetIntegerv(GL_MAX_DRAW_BUFFERS, _))
.WillOnce(SetArgumentPointee<1>(kMaxDrawBuffers))
.RetiresOnSaturation();
+
+ EXPECT_CALL(*gl_, GenTransformFeedbacks(1, _))
+ .WillOnce(SetArgumentPointee<1>(kServiceDefaultTransformFeedbackId))
+ .RetiresOnSaturation();
+ EXPECT_CALL(*gl_, BindTransformFeedback(GL_TRANSFORM_FEEDBACK,
+ kServiceDefaultTransformFeedbackId))
+ .Times(1)
+ .RetiresOnSaturation();
}
if (group_->feature_info()->feature_flags().native_vertex_array_object) {
@@ -522,6 +530,11 @@ void GLES2DecoderTestBase::ResetDecoder() {
.Times(1)
.RetiresOnSaturation();
}
+ if (group_->feature_info()->IsES3Capable()) {
+ EXPECT_CALL(*gl_, DeleteTransformFeedbacks(1, _))
+ .Times(1)
+ .RetiresOnSaturation();
+ }
}
decoder_->EndDecoding();
@@ -1480,6 +1493,7 @@ const GLuint GLES2DecoderTestBase::kServiceElementBufferId;
const GLuint GLES2DecoderTestBase::kServiceQueryId;
const GLuint GLES2DecoderTestBase::kServiceVertexArrayId;
const GLuint GLES2DecoderTestBase::kServiceTransformFeedbackId;
+const GLuint GLES2DecoderTestBase::kServiceDefaultTransformFeedbackId;
const GLuint GLES2DecoderTestBase::kServiceSyncId;
const int32_t GLES2DecoderTestBase::kSharedMemoryId;

Powered by Google App Engine
This is Rietveld 408576698