Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1283)

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 2811513002: gpu: Simplify the error handling during gpu memory buffer allocation. (Closed)
Patch Set: tot merge Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cb0ca81c7bb7ac886c7d1b8241d930e577587b87..7b25454b7e93a7f81bccf3933fd9914ca903f770 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -79,8 +79,13 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
const gpu::GPUInfo&,
EstablishChannelStatus status)>;
- typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
- CreateGpuMemoryBufferCallback;
+ enum class BufferCreationStatus {
+ GPU_HOST_INVALID,
+ SUCCESS,
+ };
+ using CreateGpuMemoryBufferCallback =
+ base::Callback<void(const gfx::GpuMemoryBufferHandle& handle,
+ BufferCreationStatus status)>;
static bool gpu_enabled() { return gpu_enabled_; }
static int gpu_crash_count() { return gpu_crash_count_; }
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698