| 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 0af10362087335a9fd0a42fc489a8f630d1606fd..98a7f9a89f789e1ce17a5e08e5e129891f57fa36 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 {
|
| @@ -2843,4 +2846,9 @@ void LayerTreeHostImpl::MarkUIResourceNotEvicted(UIResourceId uid) {
|
| client_->OnCanDrawStateChanged(CanDraw());
|
| }
|
|
|
| +void LayerTreeHostImpl::ScheduleMicroBenchmark(
|
| + scoped_ptr<MicroBenchmarkImpl> benchmark) {
|
| + micro_benchmark_controller_.ScheduleRun(benchmark.Pass());
|
| +}
|
| +
|
| } // namespace cc
|
|
|