Index: webkit/gpu/webgraphicscontext3d_in_process_impl.cc |
=================================================================== |
--- webkit/gpu/webgraphicscontext3d_in_process_impl.cc (revision 96380) |
+++ webkit/gpu/webgraphicscontext3d_in_process_impl.cc (working copy) |
@@ -646,10 +646,15 @@ |
return true; |
} |
+#if 1 |
bool WebGraphicsContext3DInProcessImpl::readBackFramebuffer( |
- unsigned char* pixels, size_t bufferSize) { |
- return readBackFramebuffer(pixels, bufferSize, fbo_, width(), height()); |
+ unsigned char* pixels, size_t bufferSize, bool bindDefaultFramebuffer) { |
+ if (bindDefaultFramebuffer) |
+ return readBackFramebuffer(pixels, bufferSize, fbo_, width(), height()); |
+ |
+ return readBackFramebuffer(pixels, bufferSize, bound_fbo_, width(), height()); |
} |
+#endif |
void WebGraphicsContext3DInProcessImpl::synthesizeGLError(WGC3Denum error) { |
if (synthetic_errors_set_.find(error) == synthetic_errors_set_.end()) { |