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 da8b47e4bac176f877772e2e0cb4583269bb44cd..f79f2e5c43caaded53298c1513de6216c8762010 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -235,6 +235,7 @@ LayerTreeHostImpl::LayerTreeHostImpl( |
external_stencil_test_enabled_(false), |
animation_registrar_(AnimationRegistrar::Create()), |
rendering_stats_instrumentation_(rendering_stats_instrumentation), |
+ micro_benchmark_controller_(this), |
need_to_update_visible_tiles_before_draw_(false), |
shared_bitmap_manager_(manager) { |
DCHECK(proxy_->IsImplThread()); |
@@ -301,6 +302,8 @@ void LayerTreeHostImpl::CommitComplete() { |
} |
client_->SendManagedMemoryStats(); |
+ |
+ micro_benchmark_controller_.DidCompleteCommit(); |
} |
bool LayerTreeHostImpl::CanDraw() const { |
@@ -2842,4 +2845,9 @@ void LayerTreeHostImpl::MarkUIResourceNotEvicted(UIResourceId uid) { |
client_->OnCanDrawStateChanged(CanDraw()); |
} |
+void LayerTreeHostImpl::ScheduleMicroBenchmark( |
+ scoped_ptr<MicroBenchmarkImpl> benchmark) { |
+ micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); |
+} |
+ |
} // namespace cc |