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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h

Issue 2905633002: Bind framebuffer to fbo_ object before readPixels, rather than multisample_fbo_ (Closed)
Patch Set: Resolve crash issue, need run releaseCallback once in case Created 3 years, 7 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: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
index c231f0913a2f385f6590b534634669d62eb0ab39..3987824eeda9033b65716ee60ed0af007055c53e 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
@@ -214,8 +214,18 @@ class GLES2InterfaceForTests : public gpu::gles2::GLES2InterfaceStub,
}
void GetIntegerv(GLenum pname, GLint* value) override {
- if (pname == GL_MAX_TEXTURE_SIZE)
- *value = 1024;
+ switch (pname) {
+ case GL_DRAW_FRAMEBUFFER_BINDING:
+ *value = state_.draw_framebuffer_binding;
+ break;
+ case GL_READ_FRAMEBUFFER_BINDING:
+ *value = state_.read_framebuffer_binding;
+ break;
+ case GL_MAX_TEXTURE_SIZE:
+ *value = 1024;
+ default:
+ break;
+ }
}
void GenMailboxCHROMIUM(GLbyte* mailbox) override {

Powered by Google App Engine
This is Rietveld 408576698