| Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
|
| ===================================================================
|
| --- webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (revision 96380)
|
| +++ webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (working copy)
|
| @@ -843,7 +843,7 @@
|
| if (mustRestoreFBO) {
|
| gl_->BindFramebuffer(GL_FRAMEBUFFER, framebuffer);
|
| }
|
| - gl_->ReadPixels(0, 0, width, height,
|
| + gl_->ReadPixels(0, 0, width, height,
|
| GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
|
|
| // Swizzle red and blue channels
|
| @@ -867,8 +867,11 @@
|
|
|
| bool WebGraphicsContext3DInProcessCommandBufferImpl::readBackFramebuffer(
|
| unsigned char* pixels,
|
| - size_t buffer_size) {
|
| - return readBackFramebuffer(pixels, buffer_size, 0, width(), height());
|
| + size_t buffer_size, bool bindDefaultBackbuffer) {
|
| + if (bindDefaultBackbuffer)
|
| + return readBackFramebuffer(pixels, buffer_size, 0, width(), height());
|
| +
|
| + return readBackFramebuffer(pixels, buffer_size, bound_fbo_, width(), height());
|
| }
|
|
|
| void WebGraphicsContext3DInProcessCommandBufferImpl::synthesizeGLError(
|
|
|