diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 07:17:46 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 07:17:46 +0000 |
commit | 068d7ef6aed7f5a7bdaf1e8d28b422c547be294d (patch) | |
tree | a66fd6a12e3a9ae7ef16c66043fd4e4bebe4d28c /cc/frame_rate_counter.h | |
parent | 2bddc10a9e71bd3e7d7f010b46ec96c7ab623336 (diff) | |
download | chromium_src-068d7ef6aed7f5a7bdaf1e8d28b422c547be294d.zip chromium_src-068d7ef6aed7f5a7bdaf1e8d28b422c547be294d.tar.gz chromium_src-068d7ef6aed7f5a7bdaf1e8d28b422c547be294d.tar.bz2 |
A speculative Revert for r165872 - Remove static thread pointers from CC, attempt 2
BUG=152904
Review URL: https://chromiumcodereview.appspot.com/11232051
TBR=aelias@chromium.org
Review URL: https://codereview.chromium.org/11369071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/frame_rate_counter.h')
-rw-r--r-- | cc/frame_rate_counter.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/frame_rate_counter.h b/cc/frame_rate_counter.h index 12ae7d7..f9b770a 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(bool hasImplThread); + static scoped_ptr<FrameRateCounter> create(); void markBeginningOfFrame(base::TimeTicks timestamp); void markEndOfFrame(); @@ -34,7 +34,7 @@ public: int droppedFrameCount() const { return m_droppedFrameCount; } private: - explicit FrameRateCounter(bool hasImplThread); + FrameRateCounter(); base::TimeDelta frameInterval(int frameNumber) const; int frameIndex(int frameNumber) const; @@ -53,8 +53,6 @@ private: static const int kTimeStampHistorySize = 120; - bool m_hasImplThread; - int m_currentFrameNumber; base::TimeTicks m_timeStampHistory[kTimeStampHistorySize]; |