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

Unified Diff: gpu/command_buffer/service/query_manager.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 | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/query_manager.cc
diff --git a/gpu/command_buffer/service/query_manager.cc b/gpu/command_buffer/service/query_manager.cc
index 8b753337deee345aa95953051eeb34a17a1d0772..c0808c47db7e88be92abf4f9baa2408e25c934f3 100644
--- a/gpu/command_buffer/service/query_manager.cc
+++ b/gpu/command_buffer/service/query_manager.cc
@@ -216,12 +216,12 @@ CommandsIssuedQuery::CommandsIssuedQuery(
}
bool CommandsIssuedQuery::Begin() {
- begin_time_ = base::TimeTicks::HighResNow();
+ begin_time_ = base::TimeTicks::Now();
return true;
}
bool CommandsIssuedQuery::End(base::subtle::Atomic32 submit_count) {
- base::TimeDelta elapsed = base::TimeTicks::HighResNow() - begin_time_;
+ base::TimeDelta elapsed = base::TimeTicks::Now() - begin_time_;
MarkAsPending(submit_count);
return MarkAsCompleted(elapsed.InMicroseconds());
}
@@ -264,7 +264,7 @@ bool CommandLatencyQuery::Begin() {
}
bool CommandLatencyQuery::End(base::subtle::Atomic32 submit_count) {
- base::TimeDelta now = base::TimeTicks::HighResNow() - base::TimeTicks();
+ base::TimeDelta now = base::TimeTicks::Now() - base::TimeTicks();
MarkAsPending(submit_count);
return MarkAsCompleted(now.InMicroseconds());
}
@@ -418,7 +418,7 @@ CommandsCompletedQuery::CommandsCompletedQuery(QueryManager* manager,
: Query(manager, target, shm_id, shm_offset) {}
bool CommandsCompletedQuery::Begin() {
- begin_time_ = base::TimeTicks::HighResNow();
+ begin_time_ = base::TimeTicks::Now();
return true;
}
@@ -435,7 +435,7 @@ bool CommandsCompletedQuery::Process(bool did_finish) {
if (!did_finish && fence_ && !fence_->HasCompleted())
return true;
- base::TimeDelta elapsed = base::TimeTicks::HighResNow() - begin_time_;
+ base::TimeDelta elapsed = base::TimeTicks::Now() - begin_time_;
return MarkAsCompleted(elapsed.InMicroseconds());
}
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698