diff options
Diffstat (limited to 'src/animator/SkTime.cpp')
-rw-r--r-- | src/animator/SkTime.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/animator/SkTime.cpp b/src/animator/SkTime.cpp index a4e035bd1e..560ccd2fc8 100644 --- a/src/animator/SkTime.cpp +++ b/src/animator/SkTime.cpp @@ -28,15 +28,6 @@ void SkTime::GetDateTime(DateTime* t) { } } -SkMSec SkTime::GetMSecs() { -#ifdef SK_DEBUG - if (gForceTickCount != (SkMSec) -1) { - return gForceTickCount; - } -#endif - return ::GetTickCount(); -} - #elif defined(xSK_BUILD_FOR_MAC) #include <time.h> @@ -58,13 +49,4 @@ void SkTime::GetDateTime(DateTime* t) { } } -SkMSec SkTime::GetMSecs() { - UnsignedWide wide; - ::Microseconds(&wide); - - int64_t s = ((int64_t)wide.hi << 32) | wide.lo; - s = (s + 500) / 1000; // rounded divide - return (SkMSec)s; -} - #endif |