| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index 67113b67bf76e8cf2a2ead2a447efdcd1485dad8..804f18b3b502054f14530b29255fe23090af84f0 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -85,6 +85,10 @@
|
| #include "content/browser/gpu/gpu_surface_tracker.h"
|
| #endif
|
|
|
| +#if defined(MOJO_SHELL_CLIENT)
|
| +#include "services/shell/runner/common/client_util.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| bool GpuProcessHost::gpu_enabled_ = true;
|
| @@ -307,6 +311,9 @@ bool GpuProcessHost::ValidateHost(GpuProcessHost* host) {
|
| // static
|
| GpuProcessHost* GpuProcessHost::Get(GpuProcessKind kind,
|
| CauseForGpuLaunch cause) {
|
| +#if defined(MOJO_SHELL_CLIENT)
|
| + DCHECK(!shell::ShellIsRemote());
|
| +#endif
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| // Don't grant further access to GPU if it is not allowed.
|
|
|