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

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

Issue 9702081: Splitting GpuMemoryAllocation into two parts: for renderer and browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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.h
diff --git a/content/common/gpu/client/command_buffer_proxy.h b/content/common/gpu/client/command_buffer_proxy.h
index b6440b18e5e061d159ce3e63a33877a5038da644..abd60036ab3f813bf1da12086894d2862e2de0f7 100644
--- a/content/common/gpu/client/command_buffer_proxy.h
+++ b/content/common/gpu/client/command_buffer_proxy.h
@@ -24,7 +24,7 @@
class GpuChannelHost;
struct GPUCommandBufferConsoleMessage;
-class GpuMemoryAllocation;
+class GpuMemoryAllocationForRenderer;
namespace base {
class SharedMemory;
@@ -76,7 +76,8 @@ class CommandBufferProxy : public gpu::CommandBuffer,
// Register a callback to invoke whenever we recieve a new memory allocation.
void SetMemoryAllocationChangedCallback(
- const base::Callback<void(const GpuMemoryAllocation&)>& callback);
+ const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
+ callback);
// Reparent a command buffer. TODO(apatrick): going forward, the notion of
// the parent / child relationship between command buffers is going away in
@@ -123,7 +124,7 @@ class CommandBufferProxy : public gpu::CommandBuffer,
void OnDestroyed(gpu::error::ContextLostReason reason);
void OnEchoAck();
void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
- void OnSetMemoryAllocation(const GpuMemoryAllocation& allocation);
+ void OnSetMemoryAllocation(const GpuMemoryAllocationForRenderer& allocation);
// Try to read an updated copy of the state from shared memory.
void TryUpdateState();
@@ -157,7 +158,7 @@ class CommandBufferProxy : public gpu::CommandBuffer,
base::Closure channel_error_callback_;
- base::Callback<void(const GpuMemoryAllocation&)>
+ base::Callback<void(const GpuMemoryAllocationForRenderer&)>
memory_allocation_changed_callback_;
GpuConsoleMessageCallback console_message_callback_;
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy.cc » ('j') | content/common/gpu/client/command_buffer_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698