Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 81f905199febf1e9ff9f533074e8fd8e37215487..7124b13a9d01f0d1ae4638db9d769687d7fa4409 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -97,7 +97,8 @@ LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client, |
trigger_idle_updates_(true), |
background_color_(SK_ColorWHITE), |
has_transparent_background_(false), |
- partial_texture_update_requests_(0) { |
+ partial_texture_update_requests_(0), |
+ in_paint_layer_contents_(false) { |
if (settings_.accelerated_animation_enabled) |
animation_registrar_ = AnimationRegistrar::Create(); |
s_num_layer_tree_instances++; |
@@ -935,6 +936,8 @@ bool LayerTreeHost::PaintLayerContents( |
RenderingStats* stats_ptr = |
debug_state_.RecordRenderingStats() ? &stats : NULL; |
+ in_paint_layer_contents_ = true; |
+ |
LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list); |
for (LayerIteratorType it = |
LayerIteratorType::Begin(&render_surface_layer_list); |
@@ -955,6 +958,8 @@ bool LayerTreeHost::PaintLayerContents( |
occlusion_tracker.LeaveLayer(it); |
} |
+ in_paint_layer_contents_ = false; |
+ |
rendering_stats_instrumentation_->AddStats(stats); |
occlusion_tracker.overdraw_metrics()->RecordMetrics(this); |