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

Unified Diff: ui/compositor/compositor.h

Issue 2971613002: Add command-line flag to force compositor framerate. (Closed)
Patch Set: change flag name to limit-fps Created 3 years, 5 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 | « no previous file | 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 25c3e0c81652461a79833f9bf709b0460daf5816..403a1108700761d53e563d7cfd40a492a6c09104 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -402,6 +402,9 @@ class COMPOSITOR_EXPORT Compositor
// Current vsync refresh rate per second.
float refresh_rate_ = 0.f;
+ // If nonzero, this is the refresh rate forced from the command-line.
+ double forced_refresh_rate_ = 0.f;
+
// A map from child id to parent id.
std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> child_frame_sinks_;
bool widget_valid_ = false;
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698