Chromium Code Reviews| Index: cc/trees/layer_tree_impl.cc |
| diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
| index 8274f00c98a170e1e429deea801bbd98772df5e0..5b5e7c6f91fef3565919d1626d6d8aa1fc5796d3 100644 |
| --- a/cc/trees/layer_tree_impl.cc |
| +++ b/cc/trees/layer_tree_impl.cc |
| @@ -538,16 +538,23 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) { |
| if (!needs_update_draw_properties_) |
| return true; |
| - // For max_texture_size. |
| + // Calling UpdateDrawProperties must clear this flag, so there can be no |
| + // early outs before this. |
| + needs_update_draw_properties_ = false; |
| + |
| + // For max_texture_size. When the renderer is re-created in |
| + // CreateAndSetRenderer, the needs update draw properties flag is set |
| + // agian. |
|
danakj
2015/02/19 19:03:30
again
|
| if (!layer_tree_host_impl_->renderer()) |
| return false; |
| + // Clear this after the renderer early out, as it should still be |
| + // possible to hit test even without a renderer. |
| + render_surface_layer_list_.clear(); |
| + |
| if (!root_layer()) |
| return false; |
| - needs_update_draw_properties_ = false; |
| - render_surface_layer_list_.clear(); |
| - |
| { |
| TRACE_EVENT2( |
| "cc", "LayerTreeImpl::UpdateDrawProperties::CalculateDrawProperties", |