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

Unified Diff: ui/compositor/layer.cc

Issue 2631333002: [animations] Adds metrics for jank on selected layer animations (Closed)
Patch Set: Adds UMA reporting for ripples and overview mode (UMA name fix) Created 3 years, 11 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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 7d9c07b32e4f20ca9d93f3ec46617f1606449cb6..ee05f06a294984da7eb23739e9deb1ec5094c9be 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -1082,6 +1082,11 @@ LayerAnimatorCollection* Layer::GetLayerAnimatorCollection() {
return compositor ? compositor->layer_animator_collection() : NULL;
}
+int Layer::GetFrameNumber() {
+ Compositor* compositor = GetCompositor();
+ return compositor ? compositor->GetFrameNumber() : 0;
+}
+
cc::Layer* Layer::GetCcLayer() const {
return cc_layer_;
}

Powered by Google App Engine
This is Rietveld 408576698