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

Unified Diff: cc/layers/layer.cc

Issue 12426024: cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 190697 Created 7 years, 9 months 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
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index e72e7b1b87dbf881e5627b75ad4e2196bc5586f8..66348493fcb9ec6e410ce06bbed61750aefb346d 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -817,4 +817,9 @@ ScrollbarLayer* Layer::ToScrollbarLayer() {
return NULL;
}
+RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
+ CHECK(layer_tree_host());
danakj 2013/03/26 18:47:50 The check is kind of redundant. We'll crash on the
+ return layer_tree_host()->rendering_stats_instrumentation();
danakj 2013/03/26 18:47:50 nit: layer_tree_host_->
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698