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

Unified Diff: skia/ext/benchmarking_canvas.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More changes based on review comments. Created 5 years, 11 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 | « net/base/bandwidth_metrics.h ('k') | tools/gn/trace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index 5e0032706cf14f2f0facf7101150e1d693900fe4..257ac3f126a3775063924c60897972b82c2bbe45 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -210,11 +210,11 @@ private:
AutoStamper::AutoStamper(TimingCanvas *timing_canvas)
: timing_canvas_(timing_canvas) {
- start_ticks_ = base::TimeTicks::HighResNow();
+ start_ticks_ = base::TimeTicks::Now();
}
AutoStamper::~AutoStamper() {
- base::TimeDelta delta = base::TimeTicks::HighResNow() - start_ticks_;
+ base::TimeDelta delta = base::TimeTicks::Now() - start_ticks_;
int command_index = timing_canvas_->tracking_canvas_->CommandCount() - 1;
DCHECK_GE(command_index, 0);
timing_canvas_->timings_map_[command_index] = delta;
« no previous file with comments | « net/base/bandwidth_metrics.h ('k') | tools/gn/trace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698