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

Unified Diff: cc/frame_rate_counter.h

Issue 11272042: improvements of the FPS counter in the HUDLayer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 165943 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
diff --git a/cc/frame_rate_counter.h b/cc/frame_rate_counter.h
index f9b770a1b8803d5be31798c99617c3aec478309c..80697dafeb0a9692fb1a776878842a823f1de23f 100644
--- a/cc/frame_rate_counter.h
+++ b/cc/frame_rate_counter.h
@@ -25,7 +25,8 @@ public:
// n = 0 returns the oldest frame retained in the history,
// while n = timeStampHistorySize() - 1 returns the timestamp most recent frame.
- base::TimeTicks timeStampOfRecentFrame(int n);
+ // FIXME: Returns most recent timestamp for n = 0 when called between markBeginningOfFrame and markEndOfFrame calls.
+ base::TimeTicks timeStampOfRecentFrame(int n) const;
// This is a heuristic that can be used to ignore frames in a reasonable way. Returns
// true if the given frame interval is too fast or too slow, based on constant thresholds.
@@ -51,7 +52,7 @@ private:
// FIXME: Determine this threshold based on monitor refresh rate, crbug.com/138642.
static const double kDroppedFrameTime;
- static const int kTimeStampHistorySize = 120;
+ static const int kTimeStampHistorySize = 170;
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