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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2607033002: Flush after ResourcePool deletions complete (Closed)
Patch Set: Created 4 years 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 | « cc/resources/resource_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index c602b9bfa89c963069ab94d4c3dcaaa3c4a9420b..cd4f53d7439f69acacacbbe8cacf731222e5063b 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1471,10 +1471,8 @@ void LayerTreeHostImpl::ReclaimResources(
// If we're not visible, we likely released resources, so we want to
// aggressively flush here to make sure those DeleteTextures make it to the
// GPU process to free up the memory.
- if (compositor_frame_sink_->context_provider() && !visible_) {
- compositor_frame_sink_->context_provider()
- ->ContextGL()
- ->ShallowFlushCHROMIUM();
+ if (!visible_) {
vmpstr 2017/01/09 21:43:43 nit: no braces
+ resource_provider_->FlushPendingDeletions();
}
}
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698