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

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

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/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_;
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/context_provider_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698