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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1424703003: Kills TraceTicks, which was functionally the same as TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed win compile error. Created 5 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 | « content/renderer/devtools/v8_sampling_profiler.cc ('k') | gpu/perftests/measurements.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index d1258e876d692b467561b02dc438c061b0fd5098..2459b838634fc837a7a465fa5db42a26c90e6e2e 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -771,7 +771,7 @@ bool GLES2Implementation::GetHelper(GLenum pname, GLint* params) {
case GL_TIMESTAMP_EXT:
// We convert all GPU timestamps to CPU time.
*params = base::saturated_cast<GLint>(
- (base::TraceTicks::Now() - base::TraceTicks()).InMicroseconds()
+ (base::TimeTicks::Now() - base::TimeTicks()).InMicroseconds()
* base::Time::kNanosecondsPerMicrosecond);
return true;
case GL_GPU_DISJOINT_EXT:
@@ -1069,7 +1069,7 @@ bool GLES2Implementation::GetInteger64vHelper(GLenum pname, GLint64* params) {
return true;
case GL_TIMESTAMP_EXT:
// We convert all GPU timestamps to CPU time.
- *params = (base::TraceTicks::Now() - base::TraceTicks()).InMicroseconds()
+ *params = (base::TimeTicks::Now() - base::TimeTicks()).InMicroseconds()
* base::Time::kNanosecondsPerMicrosecond;
return true;
default:
« no previous file with comments | « content/renderer/devtools/v8_sampling_profiler.cc ('k') | gpu/perftests/measurements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698