| 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 bf4a6535715b6ac087224d63ae12de77776794b7..4c0f9ee66edc593f0d353b984bf76a6e1bad82a4 100644
|
| --- a/content/browser/compositor/gpu_process_transport_factory.cc
|
| +++ b/content/browser/compositor/gpu_process_transport_factory.cc
|
| @@ -267,6 +267,10 @@
|
| }
|
|
|
| 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;
|
|
|