Index: content/browser/compositor/gpu_process_transport_factory.cc |
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc |
index d3558b1c6079fff68660add807c5529c0c1b87ea..23c4cbd818916f0f8586f6be37f7d3157ba92522 100644 |
--- a/content/browser/compositor/gpu_process_transport_factory.cc |
+++ b/content/browser/compositor/gpu_process_transport_factory.cc |
@@ -55,7 +55,6 @@ |
#include "ui/compositor/layer.h" |
#include "ui/display/types/display_snapshot.h" |
#include "ui/gfx/geometry/size.h" |
-#include "ui/gfx/switches.h" |
#if defined(USE_AURA) |
#include "content/browser/compositor/mus_browser_compositor_output_surface.h" |
@@ -197,10 +196,6 @@ |
std::unique_ptr<cc::SoftwareOutputDevice> |
GpuProcessTransportFactory::CreateSoftwareOutputDevice( |
ui::Compositor* compositor) { |
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kHeadless)) |
- return base::WrapUnique(new cc::SoftwareOutputDevice); |
- |
#if defined(USE_AURA) |
if (service_manager::ServiceManagerIsRemote()) { |
NOTREACHED(); |
@@ -265,10 +260,6 @@ |
} |
static bool ShouldCreateGpuCompositorFrameSink(ui::Compositor* compositor) { |
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kHeadless)) |
- return false; |
- |
#if defined(OS_CHROMEOS) |
// Software fallback does not happen on Chrome OS. |
return true; |