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 77c484fd1a4a6bef187c2bec963533ec8a750c4f..20f0c6dfb0ab3b10078a511dd840087efeebe5ee 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1874,9 +1874,11 @@ void LayerTreeHostImpl::ActivateSyncTree() { |
if (debug_state_.continuous_painting) { |
const RenderingStats& stats = |
rendering_stats_instrumentation_->GetRenderingStats(); |
- paint_time_counter_->SavePaintTime(stats.main_stats.paint_time + |
- stats.main_stats.record_time + |
- stats.impl_stats.rasterize_time); |
+ // TODO(hendrikw): This requires a different metric when we commit directly |
+ // to the active tree. See crbug.com/429311. |
+ paint_time_counter_->SavePaintTime( |
+ stats.impl_stats.commit_to_activate_duration.GetLastTimeDelta() + |
+ stats.impl_stats.draw_duration.GetLastTimeDelta()); |
} |
if (time_source_client_adapter_ && time_source_client_adapter_->Active()) |