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

Unified Diff: cc/output/context_cache_controller.cc

Issue 2879533005: Use new skia resource clearing API
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/context_cache_controller.cc
diff --git a/cc/output/context_cache_controller.cc b/cc/output/context_cache_controller.cc
index de178771aeef81048d5d4e71aaf106d0c464bdc4..6bdc85320d0610581f02f0d85ee3c9fa042fb472 100644
--- a/cc/output/context_cache_controller.cc
+++ b/cc/output/context_cache_controller.cc
@@ -159,8 +159,9 @@ void ContextCacheController::OnIdle(uint32_t idle_generation) {
return;
}
- if (gr_context_)
- gr_context_->freeGpuResources();
+ if (gr_context_) {
+ gr_context_->purgeResourcesNotUsedInMs(std::chrono::milliseconds(0));
+ }
// Toggle SetAggressivelyFreeResources to drop command buffer data.
context_support_->SetAggressivelyFreeResources(true);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698