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

Unified Diff: cc/debug/frame_rate_counter.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 2 months 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/animation/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/debug/frame_rate_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_rate_counter.h
diff --git a/cc/debug/frame_rate_counter.h b/cc/debug/frame_rate_counter.h
index 0b69b29aea541be345102d281c1acbf130fa7a79..ce6bd4a28a62071a848ec878ed9eff34f7956c59 100644
--- a/cc/debug/frame_rate_counter.h
+++ b/cc/debug/frame_rate_counter.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "cc/debug/ring_buffer.h"
+#include "ui/gfx/frame_time.h"
namespace cc {
@@ -22,7 +23,7 @@ class FrameRateCounter {
int dropped_frame_count() const { return dropped_frame_count_; }
size_t time_stamp_history_size() const { return ring_buffer_.BufferSize(); }
- void SaveTimeStamp(base::TimeTicks timestamp, bool software);
+ void SaveTimeStamp(gfx::FrameTime timestamp, bool software);
// n = 0 returns the oldest frame interval retained in the history, while n =
// time_stamp_history_size() - 1 returns the most recent frame interval.
@@ -37,7 +38,7 @@ class FrameRateCounter {
void GetMinAndMaxFPS(double* min_fps, double* max_fps) const;
double GetAverageFPS() const;
- typedef RingBuffer<base::TimeTicks, 136> RingBufferType;
+ typedef RingBuffer<gfx::FrameTime, 136> RingBufferType;
RingBufferType::Iterator begin() const { return ring_buffer_.Begin(); }
RingBufferType::Iterator end() const { return ring_buffer_.End(); }
« no previous file with comments | « cc/animation/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/debug/frame_rate_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698