Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: ui/gfx/surface/accelerated_surface_win.cc

Issue 9616035: Increase priority of GPU presenter threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_win.cc
diff --git a/ui/gfx/surface/accelerated_surface_win.cc b/ui/gfx/surface/accelerated_surface_win.cc
index 45fdf482c3c989f833ae6ffd0242dd8ab5944eb3..87cfaaa2b96ecfbf95e3e660f092a626f9ace6fa 100644
--- a/ui/gfx/surface/accelerated_surface_win.cc
+++ b/ui/gfx/surface/accelerated_surface_win.cc
@@ -323,6 +323,11 @@ void AcceleratedPresenter::DoInitialize() {
if (FAILED(hr))
return;
+ // Increase the GPU priority of this thread, so the StretchRect to the
+ // backbuffer doesn't have to wait for expensive commands in the GPU process
+ // to execute.
+ device_->SetGPUThreadPriority(7);
apatrick_chromium 2012/03/06 22:20:31 This isn't going to give this thread higher GPU pr
+
hr = device_->CreateQuery(D3DQUERYTYPE_EVENT, query_.Receive());
if (FAILED(hr)) {
device_ = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698