| Index: cc/frame_rate_counter.h
|
| diff --git a/cc/frame_rate_counter.h b/cc/frame_rate_counter.h
|
| index 3196c28008b4920d0a0d241c4e4a3ac950e0fa40..2e6bb42e75470f5e1fbaa77c2f233b4d9b2b4f72 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 CCFrameRateCounter {
|
| public:
|
| - static scoped_ptr<CCFrameRateCounter> create();
|
| + static scoped_ptr<CCFrameRateCounter> create(bool implThreadMode);
|
|
|
| void markBeginningOfFrame(base::TimeTicks timestamp);
|
| void markEndOfFrame();
|
| @@ -34,7 +34,7 @@ public:
|
| int droppedFrameCount() const { return m_droppedFrameCount; }
|
|
|
| private:
|
| - CCFrameRateCounter();
|
| + explicit CCFrameRateCounter(bool implThreadMode);
|
|
|
| base::TimeDelta frameInterval(int frameNumber) const;
|
| int frameIndex(int frameNumber) const;
|
| @@ -53,6 +53,8 @@ private:
|
|
|
| static const int kTimeStampHistorySize = 120;
|
|
|
| + bool m_implThreadMode;
|
| +
|
| int m_currentFrameNumber;
|
| base::TimeTicks m_timeStampHistory[kTimeStampHistorySize];
|
|
|
|
|