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 d5e6ad6871d758ac363791e23d77d28e384d95dc..5cd78bc78a4b8a550750925a927720de3504902e 100644 |
| --- a/cc/trees/layer_tree_host_impl.cc |
| +++ b/cc/trees/layer_tree_host_impl.cc |
| @@ -297,9 +297,12 @@ void LayerTreeHostImpl::BeginCommit() { |
| TRACE_EVENT0("cc", "LayerTreeHostImpl::BeginCommit"); |
| // Ensure all textures are returned so partial texture updates can happen |
| - // during the commit. Impl-side-painting doesn't upload during commits, so |
| - // is unaffected. |
| - if (!settings_.impl_side_painting && output_surface_) |
| + // during the commit. |
| + // TODO(ericrk): We should not need to ForceReclaimResources when using |
|
danakj
2015/05/19 01:16:50
This will change soon though anyways. So I'd just
|
| + // Impl-side-painting as it doesn't upload during commits. However, |
| + // Display::Draw currently relies on resource being reclaimed to block drawing |
| + // between BeginCommit / Swap. See crbug.com/489515. |
| + if (output_surface_) |
| output_surface_->ForceReclaimResources(); |
| if (settings_.impl_side_painting && !proxy_->CommitToActiveTree()) |