[Mac] Add helper methods to convert CMTime <--> MediaTime
[WebKit-https.git] / Source / WebCore / ChangeLog
index 70090ab098f5f352e9a85a1cdeb6101e7f85e43b..49c3cc8307a89867f06381d4f24083b9685235eb 100644 (file)
@@ -1,3 +1,25 @@
+2013-10-24  Jer Noble  <jer.noble@apple.com>
+
+        [Mac] Add helper methods to convert CMTime <--> MediaTime
+        https://bugs.webkit.org/show_bug.cgi?id=123285
+
+        Reviewed by Eric Carlson.
+
+        Add utility methods to convert between CMTime (a rational time class) and MediaTime.
+        Once there, PlatformClockCM can now vend and accept MediaTimes for currentTime.
+
+        * platform/mac/MediaTimeMac.h:
+        * platform/mac/MediaTimeMac.cpp:
+        (WebCore::toMediaTime): Added conversion utility method.
+        (WebCore::toCMTime): Ditto.
+
+        * platform/mac/PlatformClockCM.h:
+        * platform/mac/PlatformClockCM.mm:
+        (PlatformClockCM::setCurrentMediaTime): Added.
+        (PlatformClockCM::currentMediaTime): Added.
+
+        * WebCore.xcodeproj/project.pbxproj: Add new files to project.
+
 2013-10-24  Mark Rowe  <mrowe@apple.com>
 
         Remove references to OS X 10.7 from Xcode configuration settings.