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

Unified Diff: cc/resources/resource_pool.cc

Issue 2607033002: Flush after ResourcePool deletions complete (Closed)
Patch Set: fix |resource_provider_| check Created 3 years, 11 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
« no previous file with comments | « no previous file | cc/resources/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_pool.cc
diff --git a/cc/resources/resource_pool.cc b/cc/resources/resource_pool.cc
index 8041d8de46d065e1ab43029db3b1b2210b6d4e2d..61a7ae3f9fdc6519376a1b473631a73bc7cd3d40 100644
--- a/cc/resources/resource_pool.cc
+++ b/cc/resources/resource_pool.cc
@@ -410,7 +410,10 @@ void ResourcePool::EvictExpiredResources() {
EvictResourcesNotUsedSince(current_time - resource_expiration_delay_);
if (unused_resources_.empty() && busy_resources_.empty()) {
- // Nothing is evictable.
+ // If nothing is evictable, we have deleted one (and possibly more)
+ // resources without any new activity. Flush to ensure these deletions are
+ // processed.
+ resource_provider_->FlushPendingDeletions();
return;
}
« no previous file with comments | « no previous file | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698