| Index: components/mus/common/gpu_service.cc
|
| diff --git a/components/mus/common/gpu_service.cc b/components/mus/common/gpu_service.cc
|
| index 0c4d3427f94158f1e5edfda8755cda57dc7d742b..c3b15ff7cbf367a08a042f556ee07bd6f3771316 100644
|
| --- a/components/mus/common/gpu_service.cc
|
| +++ b/components/mus/common/gpu_service.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/command_line.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| +#include "build/build_config.h"
|
| #include "components/mus/common/gpu_type_converters.h"
|
| #include "components/mus/common/mojo_gpu_memory_buffer_manager.h"
|
| #include "components/mus/common/switches.h"
|
| @@ -32,8 +33,14 @@ GpuService::~GpuService() {}
|
|
|
| // static
|
| bool GpuService::UseChromeGpuCommandBuffer() {
|
| - return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kUseChromeGpuCommandBufferInMus);
|
| +// TODO(penghuang): Kludge: Running with Chrome GPU command buffer by default
|
| +// breaks unit tests on Windows
|
| +#if defined(OS_WIN)
|
| + return false;
|
| +#else
|
| + return !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kUseMojoGpuCommandBufferInMus);
|
| +#endif
|
| }
|
|
|
| // static
|
|
|