|
| 1 | +2017-08-04 Zan Dobersek < [email protected]> |
| 2 | + |
| 3 | + [EME] Push CDMFactory into the platform layer |
| 4 | + https://bugs.webkit.org/show_bug.cgi?id=175129 |
| 5 | + |
| 6 | + Reviewed by Xabier Rodriguez-Calvar. |
| 7 | + |
| 8 | + This is a follow-up to r219678 that moved the majority of CDM abstraction |
| 9 | + classes into the platform layer, but missed the CDMFactory class. |
| 10 | + |
| 11 | + The CDMFactory abstraction is now also placed in the platform layer. Only |
| 12 | + change to the interface is that the createCDM() method can't accept a CDM |
| 13 | + object reference anymore since that class is cemented into the WebCore |
| 14 | + layer, and no current implementation used it anyway. |
| 15 | + |
| 16 | + Additionally, the static Vector object of registered factories is moved |
| 17 | + under the CDMFactory class, along with the register and unregister |
| 18 | + functions. The platformRegisterFactories() function is added to allow for |
| 19 | + platform-specific factory registrations to occur when the registered |
| 20 | + factories are queried for the first time. Empty implementation for this |
| 21 | + function is provided for non-GStreamer platforms, while for GStreamer |
| 22 | + the implementation is kept in CDMFactoryGStreamer.cpp. It's still empty |
| 23 | + for now, but it will register the ClearKey factory there in the near |
| 24 | + future. |
| 25 | + |
| 26 | + No new tests -- none affected, only refactoring. |
| 27 | + |
| 28 | + * CMakeLists.txt: |
| 29 | + * Modules/encryptedmedia/CDM.cpp: |
| 30 | + (WebCore::createCDMPrivateForKeySystem): |
| 31 | + (WebCore::CDM::supportsKeySystem): |
| 32 | + (WebCore::CDM::CDM): |
| 33 | + (): Deleted. |
| 34 | + (WebCore::CDM::registerCDMFactory): Deleted. |
| 35 | + (WebCore::CDM::unregisterCDMFactory): Deleted. |
| 36 | + * Modules/encryptedmedia/CDM.h: |
| 37 | + (WebCore::CDMFactory::~CDMFactory): Deleted. |
| 38 | + * PlatformWPE.cmake: |
| 39 | + * platform/GStreamer.cmake: |
| 40 | + * platform/encryptedmedia/CDMFactory.cpp: Added. |
| 41 | + (WebCore::CDMFactory::registerFactory): |
| 42 | + (WebCore::CDMFactory::unregisterFactory): |
| 43 | + (WebCore::CDMFactory::platformRegisterFactories): |
| 44 | + * platform/encryptedmedia/CDMFactory.h: Added. |
| 45 | + (WebCore::CDMFactory::~CDMFactory): |
| 46 | + * platform/encryptedmedia/clearkey/CDMClearKey.cpp: |
| 47 | + (WebCore::CDMFactoryClearKey::createCDM): |
| 48 | + * platform/encryptedmedia/clearkey/CDMClearKey.h: |
| 49 | + * platform/encryptedmedia/gstreamer/CDMFactoryGStreamer.cpp: Added. |
| 50 | + (WebCore::CDMFactory::platformRegisterFactories): |
| 51 | + * testing/MockCDMFactory.cpp: |
| 52 | + (WebCore::m_weakPtrFactory): |
| 53 | + (WebCore::MockCDMFactory::unregister): |
| 54 | + (WebCore::MockCDMFactory::createCDM): |
| 55 | + * testing/MockCDMFactory.h: |
| 56 | + |
1 | 57 | 2017-08-04 Frederic Wang < [email protected]> |
2 | 58 |
|
3 | 59 | ScrollingTreeOverflowScrollingNodeIOS uses the wrong fixed position rectangle |
|
0 commit comments