Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 67563002: cc: Plumbing for impl thread micro benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« cc/debug/micro_benchmark_impl.cc ('K') | « cc/trees/layer_tree_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« cc/debug/micro_benchmark_impl.cc ('K') | « cc/trees/layer_tree_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698