| 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 39bc76bc316e6856991ce2970e5d47354384dc51..1cf7e6e4a18571189ef974876b981a6732afdd23 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.h
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.h
|
| @@ -135,6 +135,10 @@ class CommandBufferProxyImpl
|
| bool ProduceFrontBuffer(const gpu::Mailbox& mailbox);
|
| void SetContextLostCallback(const base::Closure& callback);
|
|
|
| + typedef base::Callback<void(const gpu::MemoryAllocation&)>
|
| + MemoryAllocationChangedCallback;
|
| + void SetMemoryAllocationChangedCallback(
|
| + const MemoryAllocationChangedCallback& callback);
|
| void AddDeletionObserver(DeletionObserver* observer);
|
| void RemoveDeletionObserver(DeletionObserver* observer);
|
|
|
| @@ -190,6 +194,7 @@ class CommandBufferProxyImpl
|
| void OnDestroyed(gpu::error::ContextLostReason reason,
|
| gpu::error::Error error);
|
| void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
|
| + void OnSetMemoryAllocation(const gpu::MemoryAllocation& allocation);
|
| void OnSignalAck(uint32 id);
|
| void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info,
|
| gfx::SwapResult result);
|
| @@ -240,6 +245,8 @@ class CommandBufferProxyImpl
|
|
|
| base::Closure context_lost_callback_;
|
|
|
| + MemoryAllocationChangedCallback memory_allocation_changed_callback_;
|
| +
|
| GpuConsoleMessageCallback console_message_callback_;
|
|
|
| // Tasks to be invoked in SignalSyncPoint responses.
|
|
|