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

Unified Diff: cc/resources/resource_pool.h

Issue 2501063003: Handle compositor/worker context the same wrt. visibility (Closed)
Patch Set: cleanup Created 4 years, 1 month 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 | « no previous file | cc/tiles/tile_manager.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 a1bd9d696cb14933dcdd1d63d5d3e4aef5117dd1..c87d0453c401967099d2905aa9c663f4e6d31ed8 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -71,8 +71,8 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider,
void SetResourceUsageLimits(size_t max_memory_usage_bytes,
size_t max_resource_count);
-
void ReduceResourceUsage();
+ bool ResourceUsageTooHigh();
// Must be called regularly to move resources from the busy pool to the unused
// pool.
@@ -104,8 +104,6 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider,
bool use_gpu_memory_buffers,
const base::TimeDelta& expiration_delay);
- bool ResourceUsageTooHigh();
-
private:
FRIEND_TEST_ALL_PREFIXES(ResourcePoolTest, ReuseResource);
class PoolResource : public ScopedResource {
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698