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

Unified Diff: cc/frame_rate_controller.h

Issue 11747002: cc: Set the max frames pending from the thread proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 years, 12 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/frame_rate_controller.h
diff --git a/cc/frame_rate_controller.h b/cc/frame_rate_controller.h
index 16a3e37933aa5d217a0c3659c385311bfa0ba211..681c6d20d65d4d746c30b3a267dda227d9fc36f9 100644
--- a/cc/frame_rate_controller.h
+++ b/cc/frame_rate_controller.h
@@ -29,6 +29,10 @@ class FrameRateControllerTimeSourceAdapter;
class CC_EXPORT FrameRateController {
public:
+ enum {
+ kDefaultMaxFramesPending = 2
+ };
+
explicit FrameRateController(scoped_refptr<TimeSource>);
// Alternate form of FrameRateController with unthrottled frame-rate.
explicit FrameRateController(Thread*);
@@ -48,6 +52,7 @@ public:
void didFinishFrame();
void didAbortAllPendingFrames();
void setMaxFramesPending(int); // 0 for unlimited.
+ int maxFramesPending() const { return m_maxFramesPending; }
// This returns null for unthrottled frame-rate.
base::TimeTicks nextTickTime();
« no previous file with comments | « cc/delegating_renderer.cc ('k') | cc/frame_rate_controller.cc » ('j') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698