Index: cc/resources/resource_pool.h |
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h |
index e87e217ea144b4b59024eacaf6abd26b5f139efe..e577826059a1f3a2a32cf5932436b3d579a1d9e1 100644 |
--- a/cc/resources/resource_pool.h |
+++ b/cc/resources/resource_pool.h |
@@ -41,7 +41,10 @@ |
size_t max_resource_count); |
void ReduceResourceUsage(); |
- void CheckBusyResources(); |
+ // This might block if |wait_if_needed| is true and one of the currently |
+ // busy resources has a read lock fence that needs to be waited upon before |
+ // it can be locked for write again. |
+ void CheckBusyResources(bool wait_if_needed); |
size_t total_memory_usage_bytes() const { return memory_usage_bytes_; } |
size_t acquired_memory_usage_bytes() const { |