Index: cc/frame_rate_counter.h |
diff --git a/cc/frame_rate_counter.h b/cc/frame_rate_counter.h |
index 008c2f30e5551f3de73e21506c3fefb3429d5e5d..bc1765bfbff816912ad4777f11bba639382b8b78 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(); |
@@ -34,7 +34,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; |
@@ -53,6 +53,8 @@ private: |
static const int kTimeStampHistorySize = 120; |
+ bool m_hasImplThread; |
+ |
int m_currentFrameNumber; |
base::TimeTicks m_timeStampHistory[kTimeStampHistorySize]; |