Index: content/browser/gpu/gpu_process_host.h |
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h |
index 8b797c621bbdfc7f1f7d141591045e1a9aaa61fc..749d63be6bd802a0a452110acbf351b5f962eb19 100644 |
--- a/content/browser/gpu/gpu_process_host.h |
+++ b/content/browser/gpu/gpu_process_host.h |
@@ -66,8 +66,18 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate, |
GPU_PROCESS_KIND_COUNT |
}; |
- typedef base::Callback<void(const IPC::ChannelHandle&, const gpu::GPUInfo&)> |
- EstablishChannelCallback; |
+ enum class EstablishChannelStatus { |
+ GPU_ACCESS_DENIED, // GPU access was not allowed. |
+ GPU_HOST_INVALID, // Request failed because the gpu host became invalid |
+ // while processing the request (e.g. the gpu process |
+ // may have been killed). The caller should normally |
+ // make another request to establish a new channel. |
+ SUCCESS |
+ }; |
+ using EstablishChannelCallback = |
+ base::Callback<void(const IPC::ChannelHandle&, |
+ const gpu::GPUInfo&, |
+ EstablishChannelStatus status)>; |
typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> |
CreateGpuMemoryBufferCallback; |