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

Unified Diff: cc/trees/proxy_timing_history.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 | « cc/scheduler/delay_based_time_source.cc ('k') | chrome/browser/load_library_perf_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_timing_history.cc
diff --git a/cc/trees/proxy_timing_history.cc b/cc/trees/proxy_timing_history.cc
index 9020ad51ef1d51e69efd4da7739eb7636e069298..90abad1632f585c407106d556d52d7c3de5ad2cf 100644
--- a/cc/trees/proxy_timing_history.cc
+++ b/cc/trees/proxy_timing_history.cc
@@ -43,11 +43,11 @@ base::TimeDelta ProxyTimingHistory::CommitToActivateDurationEstimate() const {
}
void ProxyTimingHistory::DidBeginMainFrame() {
- begin_main_frame_sent_time_ = base::TimeTicks::HighResNow();
+ begin_main_frame_sent_time_ = base::TimeTicks::Now();
}
void ProxyTimingHistory::DidCommit() {
- commit_complete_time_ = base::TimeTicks::HighResNow();
+ commit_complete_time_ = base::TimeTicks::Now();
base::TimeDelta begin_main_frame_to_commit_duration =
commit_complete_time_ - begin_main_frame_sent_time_;
@@ -64,7 +64,7 @@ void ProxyTimingHistory::DidCommit() {
void ProxyTimingHistory::DidActivateSyncTree() {
base::TimeDelta commit_to_activate_duration =
- base::TimeTicks::HighResNow() - commit_complete_time_;
+ base::TimeTicks::Now() - commit_complete_time_;
// Before adding the new data point to the timing history, see what we would
// have predicted for this frame. This allows us to keep track of the accuracy
@@ -77,12 +77,11 @@ void ProxyTimingHistory::DidActivateSyncTree() {
}
void ProxyTimingHistory::DidStartDrawing() {
- start_draw_time_ = base::TimeTicks::HighResNow();
+ start_draw_time_ = base::TimeTicks::Now();
}
void ProxyTimingHistory::DidFinishDrawing() {
- base::TimeDelta draw_duration =
- base::TimeTicks::HighResNow() - start_draw_time_;
+ base::TimeDelta draw_duration = base::TimeTicks::Now() - start_draw_time_;
// Before adding the new data point to the timing history, see what we would
// have predicted for this frame. This allows us to keep track of the accuracy
« no previous file with comments | « cc/scheduler/delay_based_time_source.cc ('k') | chrome/browser/load_library_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698