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

Unified Diff: content/renderer/skia_benchmarking_extension.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 | « content/renderer/render_widget.cc ('k') | gpu/command_buffer/common/time.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/skia_benchmarking_extension.cc
diff --git a/content/renderer/skia_benchmarking_extension.cc b/content/renderer/skia_benchmarking_extension.cc
index 8cf6edd1bb63628cfc01c848ee307ebf1814e625..dccf88dc4099bae584c7944d4689a801feb3ed21 100644
--- a/content/renderer/skia_benchmarking_extension.cc
+++ b/content/renderer/skia_benchmarking_extension.cc
@@ -263,9 +263,9 @@ void SkiaBenchmarking::GetOpTimings(gin::Arguments* args) {
bitmap.allocN32Pixels(bounds.width(), bounds.height());
SkCanvas bitmap_canvas(bitmap);
bitmap_canvas.clear(SK_ColorTRANSPARENT);
- base::TimeTicks t0 = base::TimeTicks::HighResNow();
+ base::TimeTicks t0 = base::TimeTicks::Now();
picture->Replay(&bitmap_canvas);
- base::TimeDelta total_time = base::TimeTicks::HighResNow() - t0;
+ base::TimeDelta total_time = base::TimeTicks::Now() - t0;
// Gather per-op timing info by drawing into a BenchmarkingCanvas.
skia::BenchmarkingCanvas benchmarking_canvas(bounds.width(), bounds.height());
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/command_buffer/common/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698