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

Unified Diff: cc/CCFrameRateController.h

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use uint64_t and rename variables to *Count Created 8 years, 2 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/CCFrameRateController.h
diff --git a/cc/CCFrameRateController.h b/cc/CCFrameRateController.h
index 2ad0da66ea98b294746f2b0d74b51220bb3710a7..fe3ef21d39efd5f31d12abbe77e5a647e2527af7 100644
--- a/cc/CCFrameRateController.h
+++ b/cc/CCFrameRateController.h
@@ -13,6 +13,7 @@
namespace cc {
+class CCRenderingStats;
class CCThread;
class CCTimeSource;
@@ -36,7 +37,7 @@ public:
void setClient(CCFrameRateControllerClient* client) { m_client = client; }
- void setActive(bool);
+ void setActive(bool drawActive, bool commitActive);
// Use the following methods to adjust target frame rate.
//
@@ -55,6 +56,8 @@ public:
void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval);
void setSwapBuffersCompleteSupported(bool);
+ void renderingStats(CCRenderingStats* stats) const;
+
protected:
friend class CCFrameRateControllerTimeSourceAdapter;
void onTimerTick();
@@ -70,8 +73,17 @@ protected:
RefPtr<CCTimeSource> m_timeSource;
OwnPtr<CCFrameRateControllerTimeSourceAdapter> m_timeSourceClientAdapter;
bool m_active;
+ bool m_drawActive;
+ bool m_commitActive;
bool m_swapBuffersCompleteSupported;
+ uint64_t m_compositorSyncCount;
+ uint64_t m_compositorSyncActiveCount;
+ uint64_t m_numBeginFrames;
+ base::TimeTicks m_activeTimestamp;
+ base::TimeTicks m_intervalChangedTime;
+ base::TimeDelta m_interval;
+
// Members for unthrottled frame-rate.
bool m_isTimeSourceThrottling;
OwnPtr<CCTimer> m_manualTicker;

Powered by Google App Engine
This is Rietveld 408576698