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

Unified Diff: cc/resources/resource_pool.h

Issue 2162193002: Add logic to GLRenderer to support RenderPassDrawQuad copying. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 5 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: 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);

Powered by Google App Engine
This is Rietveld 408576698