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

Unified Diff: cc/paint_time_counter.h

Issue 12209022: cc: add rasterize time to continuous painting graph data in impl-side-painting (Closed) Base URL: http://git.chromium.org/chromium/src.git@raster
Patch Set: Created 7 years, 10 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
Index: cc/paint_time_counter.h
diff --git a/cc/paint_time_counter.h b/cc/paint_time_counter.h
index 171f6dd8748ca82cdee4596a6302da0fb7abe5c0..ebdc19b11c887482eee92e455aa24b56e9523162 100644
--- a/cc/paint_time_counter.h
+++ b/cc/paint_time_counter.h
@@ -23,7 +23,8 @@ class PaintTimeCounter {
// n = PaintTimeHistorySize() - 1 the most recent paint time.
base::TimeDelta GetPaintTimeOfRecentFrame(const size_t& n) const;
- void SavePaintTime(const base::TimeDelta& total_paint_time);
+ void SavePaintTime(const base::TimeDelta& total_paint_time,
+ const int& frame_number);
void GetMinAndMaxPaintTime(base::TimeDelta* min, base::TimeDelta* max) const;
private:
@@ -31,6 +32,7 @@ class PaintTimeCounter {
RingBuffer<base::TimeDelta, 80> ring_buffer_;
base::TimeDelta last_total_paint_time_;
+ int last_frame_number;
DISALLOW_COPY_AND_ASSIGN(PaintTimeCounter);
};

Powered by Google App Engine
This is Rietveld 408576698