Index: content/common/gpu/client/context_provider_command_buffer.h |
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h |
index 3e67234a7fe7156bbfa09ec46d0fc31d93a9714b..af7257309b7b5f5baa35c5ce1c475140973964f9 100644 |
--- a/content/common/gpu/client/context_provider_command_buffer.h |
+++ b/content/common/gpu/client/context_provider_command_buffer.h |
@@ -46,6 +46,9 @@ class CONTENT_EXPORT ContextProviderCommandBuffer |
void DeleteCachedResources() override; |
void SetLostContextCallback( |
const LostContextCallback& lost_context_callback) override; |
+ void SetMemoryPolicyChangedCallback( |
+ const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
+ override; |
protected: |
ContextProviderCommandBuffer( |
@@ -54,6 +57,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer |
~ContextProviderCommandBuffer() override; |
void OnLostContext(); |
+ void OnMemoryAllocationChanged(const gpu::MemoryAllocation& allocation); |
private: |
void InitializeCapabilities(); |
@@ -69,6 +73,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer |
std::string debug_name_; |
LostContextCallback lost_context_callback_; |
+ MemoryPolicyChangedCallback memory_policy_changed_callback_; |
base::Lock context_lock_; |