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

Unified Diff: cc/resources/resource_pool.h

Issue 2367953002: Implement OnMemoryStateChange for Various CC Classes (Closed)
Patch Set: feedback Created 4 years, 3 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
« no previous file with comments | « cc/raster/staging_buffer_pool.cc ('k') | cc/resources/resource_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_pool.h
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index 378ce0168ddbb72c38323df81cd6795d07426ba1..a1bd9d696cb14933dcdd1d63d5d3e4aef5117dd1 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -85,6 +85,9 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider,
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) override;
+ // Overriden from base::MemoryCoordinatorClient.
+ void OnMemoryStateChange(base::MemoryState state) override;
+
size_t GetTotalMemoryUsageForTesting() const {
return total_memory_usage_bytes_;
}
@@ -158,9 +161,6 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider,
bool HasEvictableResources() const;
base::TimeTicks GetUsageTimeForLRUResource() const;
- // Overriden from base::MemoryCoordinatorClient.
- void OnMemoryStateChange(base::MemoryState state) override;
-
ResourceProvider* resource_provider_;
bool use_gpu_memory_buffers_;
gfx::BufferUsage usage_;
« no previous file with comments | « cc/raster/staging_buffer_pool.cc ('k') | cc/resources/resource_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698