diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 01:22:04 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 01:22:04 +0000 |
commit | 0d3c5562eb322ed065b1ad770290abc62631a1ff (patch) | |
tree | 8429b6a4abab10766079b35fd6bc81532c40c780 /ui/gfx/surface | |
parent | 69f21bface7145ec9db86cc3e1a109134dc37202 (diff) | |
download | chromium_src-0d3c5562eb322ed065b1ad770290abc62631a1ff.zip chromium_src-0d3c5562eb322ed065b1ad770290abc62631a1ff.tar.gz chromium_src-0d3c5562eb322ed065b1ad770290abc62631a1ff.tar.bz2 |
Fix framerate jank for accelerated content on windows
By delaying the SwapBuffersAck to after Present, we send back the Ack at the rate that D3D Presents finish, which is typically vsync or slower when GPU bound.
BUG=125232
TEST=Open WebGL Aquarium, record trace in about:tracing, verify smooth framerate.
Review URL: http://codereview.chromium.org/10222029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/surface')
-rw-r--r-- | ui/gfx/surface/accelerated_surface_win.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/gfx/surface/accelerated_surface_win.cc b/ui/gfx/surface/accelerated_surface_win.cc index d5c7ddc..8bd8e46 100644 --- a/ui/gfx/surface/accelerated_surface_win.cc +++ b/ui/gfx/surface/accelerated_surface_win.cc @@ -637,10 +637,6 @@ void AcceleratedPresenter::DoPresentAndAcknowledge( if (swap_delay.ToInternalValue()) base::PlatformThread::Sleep(swap_delay); - scoped_completion_runner.Release(); - if (!completion_task.is_null()) - completion_task.Run(true); - { TRACE_EVENT0("surface", "Present"); hr = swap_chain_->Present(&rect, &rect, window_, NULL, 0); |