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 53afea7541e9a3f0d57938db88579845b768435c..3555a87807b5e0eea229ae4d1282e7d33c279cbc 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 { |
@@ -2841,4 +2844,9 @@ void LayerTreeHostImpl::MarkUIResourceNotEvicted(UIResourceId uid) { |
client_->OnCanDrawStateChanged(CanDraw()); |
} |
+void LayerTreeHostImpl::ScheduleMicroBenchmark( |
+ scoped_ptr<MicroBenchmarkImpl> benchmark) { |
+ micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); |
+} |
+ |
} // namespace cc |