Index: cc/layer_tree_host_impl.cc |
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc |
index cddbec75d02a5a56574fb679414dd5b457445962..4f2827d38b4fb456e226da3e1a0ac59ca8ca77d5 100644 |
--- a/cc/layer_tree_host_impl.cc |
+++ b/cc/layer_tree_host_impl.cc |
@@ -26,6 +26,7 @@ |
#include "cc/math_util.h" |
#include "cc/overdraw_metrics.h" |
#include "cc/page_scale_animation.h" |
+#include "cc/paint_time_counter.h" |
#include "cc/prioritized_resource_manager.h" |
#include "cc/quad_culler.h" |
#include "cc/render_pass_draw_quad.h" |
@@ -143,6 +144,7 @@ LayerTreeHostImpl::LayerTreeHostImpl(const LayerTreeSettings& settings, LayerTre |
, m_needsUpdateDrawProperties(false) |
, m_pinchGestureActive(false) |
, m_fpsCounter(FrameRateCounter::create(m_proxy->hasImplThread())) |
+ , m_paintTimeCounter(PaintTimeCounter::create()) |
, m_debugRectHistory(DebugRectHistory::create()) |
, m_numImplThreadScrolls(0) |
, m_numMainThreadScrolls(0) |
@@ -1677,4 +1679,9 @@ skia::RefPtr<SkPicture> LayerTreeHostImpl::capturePicture() |
return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); |
} |
+void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) |
+{ |
+ m_paintTimeCounter->SavePaintTime(totalPaintTime); |
+} |
+ |
} // namespace cc |