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

Unified Diff: trunk/src/content/common/gpu/texture_image_transport_surface.cc

Issue 189373012: Revert 255481 "Remove --ui-prioritize-in-gpu-process" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/content/common/gpu/texture_image_transport_surface.cc
===================================================================
--- trunk/src/content/common/gpu/texture_image_transport_surface.cc (revision 255720)
+++ trunk/src/content/common/gpu/texture_image_transport_surface.cc (working copy)
@@ -73,8 +73,11 @@
return false;
GpuChannel* parent_channel = manager->LookupChannel(handle_.parent_client_id);
- if (parent_channel)
- helper_->SetPreemptByFlag(parent_channel->GetPreemptionFlag());
+ if (parent_channel) {
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kUIPrioritizeInGpuProcess))
+ helper_->SetPreemptByFlag(parent_channel->GetPreemptionFlag());
+ }
return true;
}
« no previous file with comments | « trunk/src/content/common/gpu/image_transport_surface_android.cc ('k') | trunk/src/content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698