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

Unified Diff: cc/CCFrameRateCounter.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/CCFrameRateCounter.h
diff --git a/cc/CCFrameRateCounter.h b/cc/CCFrameRateCounter.h
index 76b42242565b74db6467aff88fc71c62796561e4..0b9256bb66ab5009fbc50103bb2b24712df02bc4 100644
--- a/cc/CCFrameRateCounter.h
+++ b/cc/CCFrameRateCounter.h
@@ -23,7 +23,7 @@ public:
void markBeginningOfFrame(double timestamp);
void markEndOfFrame();
- int currentFrameNumber() const { return m_currentFrameNumber; }
+ uint64_t currentFrameNumber() const { return m_currentFrameNumber; }
void getAverageFPSAndStandardDeviation(double& averageFPS, double& standardDeviation) const;
int timeStampHistorySize() const { return kTimeStampHistorySize; }
@@ -35,8 +35,6 @@ public:
// true if the given frame interval is too fast or too slow, based on constant thresholds.
bool isBadFrameInterval(double intervalBetweenConsecutiveFrames) const;
- int droppedFrameCount() const { return m_droppedFrameCount; }
-
private:
CCFrameRateCounter();
@@ -57,11 +55,9 @@ private:
static const int kTimeStampHistorySize = 120;
- int m_currentFrameNumber;
+ uint64_t m_currentFrameNumber;
double m_timeStampHistory[kTimeStampHistorySize];
- int m_droppedFrameCount;
-
DISALLOW_COPY_AND_ASSIGN(CCFrameRateCounter);
};

Powered by Google App Engine
This is Rietveld 408576698