Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 1f6b88c85497ece2288fe14621f394decee03329..7ec16870f33241d6fd2d7218d9951f239a6ca77f 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -928,10 +928,9 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) { |
// 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 |
- // again. |
- if (!layer_tree_host_impl_->renderer()) |
+ // For max_texture_size. When a new output surface is received the needs |
+ // update draw properties flag is set again. |
+ if (!layer_tree_host_impl_->output_surface()) |
return false; |
// Clear this after the renderer early out, as it should still be |