summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 22:24:52 +0000
committerkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 22:24:52 +0000
commite91e120c82d7750ba7c0bd1cbe3dde47bf9f2f69 (patch)
treefa811222a2d5e08499ea9e309da5ac51bef4a9c5 /content
parent23caf1d46883d01d754785cc9e77f121f73c2eab (diff)
downloadchromium_src-e91e120c82d7750ba7c0bd1cbe3dde47bf9f2f69.zip
chromium_src-e91e120c82d7750ba7c0bd1cbe3dde47bf9f2f69.tar.gz
chromium_src-e91e120c82d7750ba7c0bd1cbe3dde47bf9f2f69.tar.bz2
Flush during SwapBuffers only on Mac OS X in order to force results to
be displayed on screen. BUG=94325 TEST=none (tested manually with WebGL aquarium) Review URL: http://codereview.chromium.org/7747030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
index 0366725..f868526 100644
--- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc
@@ -235,6 +235,12 @@ void WebGraphicsContext3DCommandBufferImpl::prepareTexture() {
renderview->OnViewContextSwapBuffersPosted();
#endif
context_->SwapBuffers();
+#if defined(OS_MACOSX)
+ // It appears that making the compositor's on-screen context current on
+ // other platforms implies this flush. TODO(kbr): this means that the
+ // TOUCH build and, in the future, other platforms might need this.
+ gl_->Flush();
+#endif
}
void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) {