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