| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
 |   2 // Use of this source code is governed by a BSD-style license that can be | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 #ifndef UI_GFX_FRAME_TIME_H | 
 |   6 #define UI_GFX_FRAME_TIME_H | 
 |   7  | 
 |   8 #include "base/time/time.h" | 
 |   9  | 
 |  10 namespace gfx { | 
 |  11  | 
 |  12 // FrameTime::Now() should be used to get timestamps with a timebase that | 
 |  13 // is consistent across the graphics stack. | 
 |  14 namespace FrameTime { | 
 |  15   static base::TimeTicks Now() { | 
 |  16     if (base::TimeTicks::IsHighResNowFastAndReliable()) | 
 |  17       return base::TimeTicks::HighResNow(); | 
 |  18     return base::TimeTicks::Now(); | 
 |  19   } | 
 |  20  | 
 |  21   static bool TimestampsAreHighRes() { | 
 |  22     return base::TimeTicks::IsHighResNowFastAndReliable(); | 
 |  23   } | 
 |  24 } | 
 |  25  | 
 |  26 } | 
 |  27  | 
 |  28 #endif // CC_OUTPUT_FRAME_TIME_H | 
| OLD | NEW |