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; |