summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 21:31:45 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 21:31:45 +0000
commit09351e32336642a31dc18d661772215e8c74295a (patch)
tree881ae2f9cd5b7c957586a4c69bfe89eba046e876 /ui
parente75eafc6ba2f8e418ad5fc895bd0a8c6ff5c636e (diff)
downloadchromium_src-09351e32336642a31dc18d661772215e8c74295a.zip
chromium_src-09351e32336642a31dc18d661772215e8c74295a.tar.gz
chromium_src-09351e32336642a31dc18d661772215e8c74295a.tar.bz2
Win AcceleratedSurface always presents on the thread with it has affinity.
The D3D calls on the device all take a lock anyway so doing it as previously unnecessarily serialized the threads in the pool. Review URL: http://codereview.chromium.org/9167036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/surface/accelerated_surface_win.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/gfx/surface/accelerated_surface_win.cc b/ui/gfx/surface/accelerated_surface_win.cc
index 0d58da9..c5c93c2 100644
--- a/ui/gfx/surface/accelerated_surface_win.cc
+++ b/ui/gfx/surface/accelerated_surface_win.cc
@@ -187,11 +187,8 @@ void AcceleratedPresenter::AsyncPresentAndAcknowledge(
quantized_size));
}
- // This might unnecessarily post to the thread with which the swap chain has
- // affinity. This will only result in potentially delaying the present.
g_present_thread_pool.Pointer()->PostTask(
- num_pending_resizes_ ?
- thread_affinity_ : g_present_thread_pool.Pointer()->NextThread(),
+ thread_affinity_,
FROM_HERE,
base::Bind(&AcceleratedPresenter::DoPresentAndAcknowledge,
base::Unretained(this),