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

Unified Diff: cc/debug/paint_time_counter.cc

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/debug/paint_time_counter.h ('k') | cc/debug/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/paint_time_counter.cc
diff --git a/cc/debug/paint_time_counter.cc b/cc/debug/paint_time_counter.cc
index 7d5415427ff5e9a2763954566a0cce2c561b5e51..41ef1a334a6a19b8e100ec51a016e99e5f63874f 100644
--- a/cc/debug/paint_time_counter.cc
+++ b/cc/debug/paint_time_counter.cc
@@ -11,18 +11,11 @@ scoped_ptr<PaintTimeCounter> PaintTimeCounter::Create() {
return make_scoped_ptr(new PaintTimeCounter());
}
-PaintTimeCounter::PaintTimeCounter()
- : can_save_paint_time_delta_(false) {
+PaintTimeCounter::PaintTimeCounter() {
}
-void PaintTimeCounter::SavePaintTime(const base::TimeDelta& total_paint_time) {
- if (can_save_paint_time_delta_) {
- base::TimeDelta paint_time = total_paint_time - last_total_paint_time_;
- ring_buffer_.SaveToBuffer(paint_time);
- }
-
- last_total_paint_time_ = total_paint_time;
- can_save_paint_time_delta_ = true;
+void PaintTimeCounter::SavePaintTime(const base::TimeDelta& paint_time) {
+ ring_buffer_.SaveToBuffer(paint_time);
}
void PaintTimeCounter::GetMinAndMaxPaintTime(base::TimeDelta* min,
@@ -45,7 +38,6 @@ void PaintTimeCounter::GetMinAndMaxPaintTime(base::TimeDelta* min,
void PaintTimeCounter::ClearHistory() {
ring_buffer_.Clear();
- can_save_paint_time_delta_ = false;
}
} // namespace cc
« no previous file with comments | « cc/debug/paint_time_counter.h ('k') | cc/debug/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698