summaryrefslogtreecommitdiffstats
path: root/ui/gfx/surface
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-01 19:14:25 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-01 19:14:25 +0000
commit7907df5e24a7d781958d53d8ccc2df0b7d34e14d (patch)
tree08fc6c1abf4512564192441fe2cde399fbc3d6ed /ui/gfx/surface
parent7f8c12a630ce62c4d167167f212a215748bec378 (diff)
downloadchromium_src-7907df5e24a7d781958d53d8ccc2df0b7d34e14d.zip
chromium_src-7907df5e24a7d781958d53d8ccc2df0b7d34e14d.tar.gz
chromium_src-7907df5e24a7d781958d53d8ccc2df0b7d34e14d.tar.bz2
Revert 134313 - Revert 134201 - 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 TBR=jbates@chromium.org Suspected performance regression: http://build.chromium.org/f/chromium/perf/gpu-win7-release-nvidia/gpu_frame_rate/report.html?history=150&rev=-1&graph=fireflies Review URL: https://chromiumcodereview.appspot.com/10187019 TBR=apatrick@chromium.org It wasn't a regression. Review URL: https://chromiumcodereview.appspot.com/10263025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/surface')
-rw-r--r--ui/gfx/surface/accelerated_surface_win.cc4
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 ced9f01..c6d18d9 100644
--- a/ui/gfx/surface/accelerated_surface_win.cc
+++ b/ui/gfx/surface/accelerated_surface_win.cc
@@ -640,10 +640,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);