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 4def872429965a980b8e30178450580ab1ca312d..fbf38d330caa0a8be9fd6a515a263965b9759580 100644 |
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc |
@@ -24,6 +24,7 @@ |
#include "base/metrics/histogram.h" |
#include "base/synchronization/lock.h" |
#include "content/common/content_switches.h" |
+#include "content/renderer/gpu/command_buffer_proxy.h" |
#include "content/renderer/gpu/gpu_channel_host.h" |
#include "content/renderer/render_thread_impl.h" |
#include "content/renderer/render_view_impl.h" |
@@ -268,6 +269,11 @@ void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) { |
#endif // FLIP_FRAMEBUFFER_VERTICALLY |
} |
+void WebGraphicsContext3DCommandBufferImpl::setVisibility(bool visible) { |
+ gl_->Flush(); |
+ context_->SetSurfaceVisible(visible); |
+} |
+ |
#ifdef FLIP_FRAMEBUFFER_VERTICALLY |
void WebGraphicsContext3DCommandBufferImpl::FlipVertically( |
uint8* framebuffer, |