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

Unified Diff: cc/frame_rate_counter.h

Issue 11369071: A speculative Revert for r165872 - Remove static thread pointers from CC, attempt 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « cc/font_atlas.cc ('k') | cc/frame_rate_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/frame_rate_counter.h
===================================================================
--- cc/frame_rate_counter.h (revision 165906)
+++ cc/frame_rate_counter.h (working copy)
@@ -15,7 +15,7 @@
// 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 @@
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 @@
static const int kTimeStampHistorySize = 120;
- bool m_hasImplThread;
-
int m_currentFrameNumber;
base::TimeTicks m_timeStampHistory[kTimeStampHistorySize];
« no previous file with comments | « cc/font_atlas.cc ('k') | cc/frame_rate_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698