| Index: ui/gfx/frame_time.h
|
| diff --git a/ui/gfx/frame_time.h b/ui/gfx/frame_time.h
|
| index dd00fbfdd5ddfa908cdacc35ae9535a4070e1617..58b27cb05773b9a4ff1c9943eef14920661b6b56 100644
|
| --- a/ui/gfx/frame_time.h
|
| +++ b/ui/gfx/frame_time.h
|
| @@ -15,8 +15,6 @@ namespace gfx {
|
| class FrameTime {
|
| public:
|
| static base::TimeTicks Now() {
|
| - if (TimestampsAreHighRes())
|
| - return base::TimeTicks::HighResNow();
|
| return base::TimeTicks::Now();
|
| }
|
|
|
| @@ -29,8 +27,10 @@ class FrameTime {
|
|
|
| static bool TimestampsAreHighRes() {
|
| #if defined(OS_WIN)
|
| - return base::TimeTicks::IsHighResClockWorking();
|
| + return base::TimeTicks::IsHighResolution();
|
| #else
|
| + // TODO(miu): Mac/Linux always provide high-resolution timestamps. Consider
|
| + // returning base::TimeTicks::IsHighResolution() for all platforms.
|
| return false;
|
| #endif
|
| }
|
|
|