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

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

Issue 2146603005: Fix CopyTexImage2D when using unsized internal formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 1cf65b1df31988343a6d9379158f0b9e59bd4485..e31447d4c81668115784bca1efe364aad36c878d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
@@ -551,7 +551,7 @@ void GLES2DecoderTestBase::ResetDecoder() {
.Times(1)
.RetiresOnSaturation();
}
- if (group_->feature_info()->IsES3Capable()) {
+ if (group_->feature_info()->IsES3Enabled()) {
// fake default transform feedback.
EXPECT_CALL(*gl_, DeleteTransformFeedbacks(1, _))
.Times(1)
@@ -1399,6 +1399,16 @@ void GLES2DecoderTestBase::DoFramebufferRenderbuffer(
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
}
+GLenum GLES2DecoderTestBase::DoCheckFramebufferStatus(GLenum target) {
+ auto* result = static_cast<cmds::CheckFramebufferStatus::Result*>(
+ shared_memory_address_);
+ *result = 0;
+ cmds::CheckFramebufferStatus cmd;
+ cmd.Init(GL_FRAMEBUFFER, shared_memory_id_, shared_memory_offset_);
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
+ return *result;
+}
+
void GLES2DecoderTestBase::DoVertexAttribPointer(
GLuint index, GLint size, GLenum type, GLsizei stride, GLuint offset) {
EXPECT_CALL(*gl_,

Powered by Google App Engine
This is Rietveld 408576698