Chromium Code Reviews| Index: cc/resources/resource_pool.h |
| diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h |
| index ab13feebdac43ec72802f8d4be886a738e35b499..57ce119ab10d775d638ed15afd2ccfa2b30ec01c 100644 |
| --- a/cc/resources/resource_pool.h |
| +++ b/cc/resources/resource_pool.h |
| @@ -56,6 +56,11 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider { |
| // valid). Updates the resource's content ID to its new value. |
| void OnContentReplaced(ResourceId resource_id, uint64_t content_id); |
| void ReleaseResource(Resource* resource); |
| + void ReleaseResource(ResourceId resource_id); |
|
ccameron
2016/07/20 22:13:53
[These changes then end up not being needed]
It's
|
| + |
| + // Similar to ReleaseResource, but does nothing if the resource did not come |
| + // from this pool. |
| + void ReleaseResourceIfFound(ResourceId resource_id); |
| void SetResourceUsageLimits(size_t max_memory_usage_bytes, |
| size_t max_resource_count); |