Chromium Code Reviews| 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(); |
| } |
| } |