Chromium Code Reviews| Index: content/browser/gpu/gpu_data_manager_impl_private.cc |
| diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc |
| index 613294c67a90769955202205876c42e059a9b774..01756ae45b66a005c65c751c9ac707277f93c752 100644 |
| --- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
| +++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
| @@ -37,6 +37,7 @@ |
| #include "gpu/config/gpu_switches.h" |
| #include "gpu/config/gpu_util.h" |
| #include "gpu/ipc/common/memory_stats.h" |
| +#include "services/shell/runner/common/client_util.h" |
| #include "ui/base/ui_base_switches.h" |
| #include "ui/gl/gl_implementation.h" |
| #include "ui/gl/gl_switches.h" |
| @@ -985,6 +986,8 @@ bool GpuDataManagerImplPrivate::UpdateActiveGpu(uint32_t vendor_id, |
| } |
| bool GpuDataManagerImplPrivate::CanUseGpuBrowserCompositor() const { |
| + if (shell::ShellIsRemote()) |
|
rjkroege
2016/08/11 17:55:38
While this is fine for now, I think that it's not
sadrul
2016/08/11 17:58:08
What sort of details do you have in mind? (we use
|
| + return true; |
| if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| switches::kDisableGpuCompositing)) |
| return false; |