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 bd9e61b6a34a61d32a08cf5d801d7561456552be..dc7395b31d4feba8ebef4d0bf298f83bd4b34213 100644 |
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
@@ -52,7 +52,8 @@ |
#include "ui/gfx/android/device_display_info.h" |
#endif // OS_ANDROID |
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
-#include "services/shell/runner/common/client_util.h" |
+#include "components/mus/common/gpu_service.h" // nogncheck |
+#include "services/shell/runner/common/client_util.h" // nogncheck |
#endif |
namespace content { |
@@ -270,7 +271,7 @@ enum BlockStatusHistogram { |
bool ShouldDisableHardwareAcceleration() { |
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
// TODO(rjkroege): Remove this when https://crbug.com/602519 is fixed. |
- if (shell::ShellIsRemote()) |
+ if (shell::ShellIsRemote() && !mus::GpuService::UseChromeGpuCommandBuffer()) |
return true; |
#endif |
return base::CommandLine::ForCurrentProcess()->HasSwitch( |