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

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 (extern constexpr) 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..c7625860160d33df7156e3b137c238901e1de828 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->submitted_frame_number() : 0;
+}
+
cc::Layer* Layer::GetCcLayer() const {
return cc_layer_;
}

Powered by Google App Engine
This is Rietveld 408576698