Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 65d5dd6f76650ea034706e1cf743c1243ead100f..82ce87db93655556d1359130d58a7f8abc71a90a 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -772,6 +772,10 @@ bool LayerTreeHost::UpdateLayers(Layer* root_layer, |
TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::CalcDrawProps"); |
bool can_render_to_separate_surface = true; |
+ // TODO(vmpstr): Passing 0 as the current calculate properties number means |
+ // that we won't be able to detect if a layer is part of |update_list|. |
+ // Change this if this information is required. |
+ int calculate_draw_properties_id = 0; |
LayerTreeHostCommon::CalcDrawPropsMainInputs inputs( |
root_layer, |
device_viewport_size(), |
@@ -783,7 +787,8 @@ bool LayerTreeHost::UpdateLayers(Layer* root_layer, |
settings_.can_use_lcd_text, |
can_render_to_separate_surface, |
settings_.layer_transforms_should_scale_layer_contents, |
- &update_list); |
+ &update_list, |
+ calculate_draw_properties_id); |
LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
if (total_frames_used_for_lcd_text_metrics_ <= |