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

Unified Diff: ui/compositor/compositor.h

Issue 2631333002: [animations] Adds metrics for jank on selected layer animations (Closed)
Patch Set: Adds UMA reporting for ripples and overview mode (query refresh rate) 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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 25bad57a8c55954d1cce700dec32395f9683a1ef..92696ade86a16ef4b7811f318b7e6f13a05c43ab 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -380,6 +380,8 @@ class COMPOSITOR_EXPORT Compositor
}
const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
+ int committed_frame_number() const { return committed_frame_number_; }
+ float refresh_rate() const { return refresh_rate_; }
private:
friend class base::RefCounted<Compositor>;
@@ -403,6 +405,12 @@ class COMPOSITOR_EXPORT Compositor
base::ObserverList<CompositorAnimationObserver> animation_observer_list_;
gfx::AcceleratedWidget widget_;
+ // A sequence number of a current compositor frame for use with metrics.
+ int committed_frame_number_;
+
+ // current VSYNC refresh rate per second.
+ float refresh_rate_;
+
// A map from child id to parent id.
std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> child_frame_sinks_;
bool widget_valid_;
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698