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

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: 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 b07b30855615920ac9295c4587306604f527af76..b41912bab49a270cef7c1a810235fad4ea7fc61d 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());
egraether 2013/03/23 00:15:40 I'm not sure what's best here. Should I just store
danakj 2013/03/23 01:56:32 We won't update() when there's no LayerTreeHost, s
+ return layer_tree_host()->rendering_stats_instrumentation();
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698