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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 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
Index: content/common/gpu/client/command_buffer_proxy_impl.h
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.h b/content/common/gpu/client/command_buffer_proxy_impl.h
index 2da5bbc2727f2bb2262f7b6d84ff4d5708be8ed1..6e73c823d5b9b5530101b48f3eec29d3ee5b6100 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.h
+++ b/content/common/gpu/client/command_buffer_proxy_impl.h
@@ -120,7 +120,7 @@ class CommandBufferProxyImpl
int GetRouteID() const;
bool ProduceFrontBuffer(const gpu::Mailbox& mailbox);
- void SetChannelErrorCallback(const base::Closure& callback);
+ void SetContextLostCallback(const base::Closure& callback);
typedef base::Callback<void(const gpu::MemoryAllocation&)>
MemoryAllocationChangedCallback;
@@ -175,7 +175,8 @@ class CommandBufferProxyImpl
// Message handlers:
void OnUpdateState(const gpu::CommandBuffer::State& state);
- void OnDestroyed(gpu::error::ContextLostReason reason);
+ void OnDestroyed(gpu::error::ContextLostReason reason,
+ gpu::error::Error error);
void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
void OnSetMemoryAllocation(const gpu::MemoryAllocation& allocation);
void OnSignalSyncPointAck(uint32 id);
@@ -208,7 +209,7 @@ class CommandBufferProxyImpl
int32 last_put_offset_;
int32 last_barrier_put_offset_;
- base::Closure channel_error_callback_;
+ base::Closure context_lost_callback_;
MemoryAllocationChangedCallback memory_allocation_changed_callback_;
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.cc ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698