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

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: speculative fix 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
« no previous file with comments | « 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 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
« no previous file with comments | « 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