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 1b72a046aac4cc549afc5cb4fec953a8a5aa30a3..1fe7837daf01805e2d0e19e8c6f302363eedb354 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1951,16 +1951,6 @@ void LayerTreeHostImpl::ActivateSyncTree() { |
if (!tree_activation_callback_.is_null()) |
tree_activation_callback_.Run(); |
- if (debug_state_.continuous_painting) { |
- const RenderingStats& stats = |
- rendering_stats_instrumentation_->GetRenderingStats(); |
- // TODO(hendrikw): This requires a different metric when we commit directly |
- // to the active tree. See crbug.com/429311. |
- paint_time_counter_->SavePaintTime( |
- stats.commit_to_activate_duration.GetLastTimeDelta() + |
- stats.draw_duration.GetLastTimeDelta()); |
- } |
- |
scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation = |
active_tree_->TakePendingPageScaleAnimation(); |
if (pending_page_scale_animation) { |
@@ -3311,8 +3301,6 @@ void LayerTreeHostImpl::SetDebugState( |
const LayerTreeDebugState& new_debug_state) { |
if (LayerTreeDebugState::Equal(debug_state_, new_debug_state)) |
return; |
- if (debug_state_.continuous_painting != new_debug_state.continuous_painting) |
- paint_time_counter_->ClearHistory(); |
debug_state_ = new_debug_state; |
UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |