diff options
| author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 01:18:59 +0000 |
|---|---|---|
| committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 01:18:59 +0000 |
| commit | cad37d275799e1d4761c5f192b134249c34a1c77 (patch) | |
| tree | 9d441b1d79ea503563f8607f03d0692da566860a /chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | |
| parent | 783ffc7355af267f7dd6881f9f2436fbcd95b2a1 (diff) | |
| download | chromium_src-cad37d275799e1d4761c5f192b134249c34a1c77.zip chromium_src-cad37d275799e1d4761c5f192b134249c34a1c77.tar.gz chromium_src-cad37d275799e1d4761c5f192b134249c34a1c77.tar.bz2 | |
Make Graphics3D::SwapBuffers take a completion callback
BUG=none
TEST=with demo_simple_vertex_shader, rate control works
Review URL: http://codereview.chromium.org/5944001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc')
| -rw-r--r-- | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc index 659c8be..1be5461 100644 --- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc +++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc @@ -116,6 +116,11 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize( renderview->routing_id(), kWebGraphicsContext3DPerferredGLExtensions, attribs); + if (context_) { + ggl::SetSwapBuffersCallback( + context_, + NewCallback(renderview, &RenderView::DidFlushPaint)); + } } else { bool compositing_enabled = !CommandLine::ForCurrentProcess()->HasSwitch( switches::kDisableAcceleratedCompositing); |
