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

Unified Diff: ui/gfx/frame_time.h

Issue 668273003: Get high resolution frame timebase and interval on compatible systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEEEERRRRRRPPPP Created 6 years, 2 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 | « no previous file | ui/gl/gl_surface_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/frame_time.h
diff --git a/ui/gfx/frame_time.h b/ui/gfx/frame_time.h
index 5cc65f5f4a883aa764140412313cace4078f4236..dd00fbfdd5ddfa908cdacc35ae9535a4070e1617 100644
--- a/ui/gfx/frame_time.h
+++ b/ui/gfx/frame_time.h
@@ -28,10 +28,11 @@ class FrameTime {
#endif
static bool TimestampsAreHighRes() {
- // This should really return base::TimeTicks::IsHighResNowFastAndReliable();
- // Returning false makes sure we are only using low-res timestamps until we
- // use FrameTime everywhere we need to. See crbug.com/315334
+#if defined(OS_WIN)
+ return base::TimeTicks::IsHighResClockWorking();
+#else
return false;
+#endif
}
};
« no previous file with comments | « no previous file | ui/gl/gl_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698