Index: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
index c61a79afd21aa6534c9d785fa9b503ad3efbe93d..00cdc1da842a57a4f193d80a78ad1e3b884f248c 100644 |
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
@@ -275,6 +275,13 @@ void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) { |
#endif // FLIP_FRAMEBUFFER_VERTICALLY |
} |
+void WebGraphicsContext3DCommandBufferImpl::setVisibility(bool visible) { |
+ printf("\nVisibility Changed: %s\n", visible ? "true" : "false"); |
+ fflush(stdout); |
+ gl_->SetSurfaceVisibleCHROMIUM(visible); |
+ gl_->Flush(); |
jonathan.backer
2011/09/27 16:53:14
Don't think that the flush is necessary if you're
mmocny
2011/09/28 21:37:33
See discussion in other comment.
On 2011/09/27 16
|
+} |
+ |
#ifdef FLIP_FRAMEBUFFER_VERTICALLY |
void WebGraphicsContext3DCommandBufferImpl::FlipVertically( |
uint8* framebuffer, |