Index: cc/frame_rate_counter.h |
diff --git a/cc/frame_rate_counter.h b/cc/frame_rate_counter.h |
index 80697dafeb0a9692fb1a776878842a823f1de23f..a0e3a19d53894cdbe06d782f2c0b75edbe79e3c9 100644 |
--- a/cc/frame_rate_counter.h |
+++ b/cc/frame_rate_counter.h |
@@ -15,7 +15,7 @@ namespace cc { |
// intelligently compute average frames per second (and standard deviation). |
class FrameRateCounter { |
public: |
- static scoped_ptr<FrameRateCounter> create(); |
+ static scoped_ptr<FrameRateCounter> create(bool hasImplThread); |
void markBeginningOfFrame(base::TimeTicks timestamp); |
void markEndOfFrame(); |
@@ -35,7 +35,7 @@ public: |
int droppedFrameCount() const { return m_droppedFrameCount; } |
private: |
- FrameRateCounter(); |
+ explicit FrameRateCounter(bool hasImplThread); |
base::TimeDelta frameInterval(int frameNumber) const; |
int frameIndex(int frameNumber) const; |
@@ -54,6 +54,8 @@ private: |
static const int kTimeStampHistorySize = 170; |
+ bool m_hasImplThread; |
+ |
int m_currentFrameNumber; |
base::TimeTicks m_timeStampHistory[kTimeStampHistorySize]; |