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 00be57f29e1240ace59276f22aeb371e2235bd42..e26ed7ae3d58ae707c83b0d84cc1af80c53b4be0 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1543,7 +1543,8 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame, |
if (!settings_.impl_side_painting && debug_state_.continuous_painting) { |
const RenderingStats& stats = |
rendering_stats_instrumentation_->GetRenderingStats(); |
- paint_time_counter_->SavePaintTime(stats.main_stats.paint_time); |
+ paint_time_counter_->SavePaintTime( |
+ stats.begin_main_frame_to_commit_duration.GetLastTimeDelta()); |
} |
bool is_new_trace; |
@@ -1883,8 +1884,8 @@ void LayerTreeHostImpl::ActivateSyncTree() { |
// 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()); |
+ stats.commit_to_activate_duration.GetLastTimeDelta() + |
+ stats.draw_duration.GetLastTimeDelta()); |
} |
if (time_source_client_adapter_ && time_source_client_adapter_->Active()) |