Index: ui/gl/gpu_timing.cc |
diff --git a/ui/gl/gpu_timing.cc b/ui/gl/gpu_timing.cc |
index 4726ebf9d795de7395f54d22b97a5c635a0ef854..01a0e192e005ad44c84efe3599bbe6550d0015e9 100644 |
--- a/ui/gl/gpu_timing.cc |
+++ b/ui/gl/gpu_timing.cc |
@@ -51,7 +51,7 @@ int64 GPUTiming::CalculateTimerOffset(base::Callback<int64(void)> cpu_time) { |
glGetInteger64v(GL_TIMESTAMP, &gl_now); |
int64 now = |
cpu_time.is_null() |
- ? base::TimeTicks::NowFromSystemTraceTime().ToInternalValue() |
+ ? (base::TraceTicks::Now() - base::TraceTicks()).InMicroseconds() |
: cpu_time.Run(); |
offset_ = now - gl_now / base::Time::kNanosecondsPerMicrosecond; |
offset_valid_ = (timer_type_ == kTimerTypeARB); |