Index: content/common/gpu/image_transport_surface.cc |
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc |
index a175fc96a641f75ab6eb6e56e4556081070ff813..26cbae946afa9881609daf8fef923f03b8c450f2 100644 |
--- a/content/common/gpu/image_transport_surface.cc |
+++ b/content/common/gpu/image_transport_surface.cc |
@@ -12,7 +12,6 @@ |
#include "content/common/gpu/gpu_channel_manager.h" |
#include "content/common/gpu/gpu_command_buffer_stub.h" |
#include "content/common/gpu/gpu_messages.h" |
-#include "content/public/common/content_switches.h" |
#include "gpu/command_buffer/service/sync_point_manager.h" |
#include "ui/gfx/vsync_provider.h" |
#include "ui/gl/gl_context.h" |
@@ -31,15 +30,6 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateSurface( |
const gfx::GLSurfaceHandle& handle) { |
scoped_refptr<gfx::GLSurface> surface; |
if (handle.transport_type == gfx::NULL_TRANSPORT) { |
- GpuChannel* parent_channel = manager->LookupChannel( |
- handle.parent_client_id); |
- if (parent_channel) { |
- const base::CommandLine* command_line = |
- base::CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kUIPrioritizeInGpuProcess)) |
- stub->channel()->SetPreemptByFlag(parent_channel->GetPreemptionFlag()); |
- } |
- |
surface = manager->GetDefaultOffscreenSurface(); |
} else { |
surface = CreateNativeSurface(manager, stub, handle); |