Index: cc/resources/resource_pool.h |
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h |
index 3cf55a041c28c6e9e0726fd95d46a9ec8281b048..3cd475028524074b9d45d5a312732190dd1a9155 100644 |
--- a/cc/resources/resource_pool.h |
+++ b/cc/resources/resource_pool.h |
@@ -44,8 +44,11 @@ class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider { |
~ResourcePool() override; |
- // Tries to reuse a resource. Returns |nullptr| if none are available. |
- Resource* ReuseResource(const gfx::Size& size, |
+ // Tries to reuse a resource as close to |min_size| as possible. The |
+ // resource will never exceed |max_size|. Returns |nullptr| if none are |
+ // available. |
+ Resource* ReuseResource(const gfx::Size& min_size, |
+ const gfx::Size& max_size, |
ResourceFormat format, |
const gfx::ColorSpace& color_space); |