[PAL] Move Clock into PAL
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 19:57:30 +0000 (19:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 19:57:30 +0000 (19:57 +0000)
commit921a52b15350efbf2b26cf5b3e298a4f5b3d2826
treed8f7f0eb11b47bcb6717023bde81fa62d308c867
parent9863d68a8664ff012045fc0df5e546ae956ed508
[PAL] Move Clock into PAL
https://bugs.webkit.org/show_bug.cgi?id=174342

Patch by Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa@sony.com> on 2017-09-26
Reviewed by Myles C. Maxfield.

Source/WebCore:

No new tests. No change in behavior.

* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
* html/MediaController.cpp:
(MediaController::MediaController):
* html/MediaController.h:
* platform/Clock.cpp: Removed.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::MediaPlayerPrivateMediaStreamAVFObjC):
* platform/mac/PlatformClockCA.cpp: Removed. PlatformClockCA is no longer used.
* platform/mac/PlatformClockCA.h: Removed.

Source/WebCore/PAL:

* PAL.xcodeproj/project.pbxproj:
* pal/PlatformGTK.cmake:
* pal/PlatformWin.cmake:
* pal/system/Clock.h: Renamed from Source/WebCore/platform/Clock.h.
* pal/system/ClockGeneric.cpp: Renamed from Source/WebCore/platform/ClockGeneric.cpp.
(PAL::Clock::create):
* pal/system/ClockGeneric.h: Renamed from Source/WebCore/platform/ClockGeneric.h.
* pal/system/mac/ClockCM.h: Renamed from Source/WebCore/platform/mac/PlatformClockCM.h.
* pal/system/mac/ClockCM.mm: Renamed from Source/WebCore/platform/mac/PlatformClockCM.mm.
(Clock::create):
(ClockCM::ClockCM):
(ClockCM::initializeWithTimingSource):
(ClockCM::setCurrentTime):
(ClockCM::currentTime const):
(ClockCM::setCurrentMediaTime):
(ClockCM::currentMediaTime const):
(ClockCM::setPlayRate):
(ClockCM::start):
(ClockCM::stop):

* pal/cf/CoreMediaSoftLink.cpp:
* pal/cf/CoreMediaSoftLink.h:
Add requrired functions.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj
Source/WebCore/PAL/pal/PlatformGTK.cmake
Source/WebCore/PAL/pal/PlatformWPE.cmake
Source/WebCore/PAL/pal/PlatformWin.cmake
Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.cpp
Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.h
Source/WebCore/PAL/pal/system/Clock.h [moved from Source/WebCore/platform/Clock.h with 51% similarity]
Source/WebCore/PAL/pal/system/ClockGeneric.cpp [moved from Source/WebCore/platform/ClockGeneric.cpp with 62% similarity]
Source/WebCore/PAL/pal/system/ClockGeneric.h [moved from Source/WebCore/platform/ClockGeneric.h with 56% similarity]
Source/WebCore/PAL/pal/system/mac/ClockCM.h [moved from Source/WebCore/platform/mac/PlatformClockCM.h with 91% similarity]
Source/WebCore/PAL/pal/system/mac/ClockCM.mm [moved from Source/WebCore/platform/mac/PlatformClockCM.mm with 84% similarity]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/html/MediaController.cpp
Source/WebCore/html/MediaController.h
Source/WebCore/platform/Clock.cpp [deleted file]
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
Source/WebCore/platform/mac/PlatformClockCA.cpp [deleted file]
Source/WebCore/platform/mac/PlatformClockCA.h [deleted file]