Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt commitPriority to get rid of the 2 AVPL solution for PiP
https://bugs.webkit.org/show_bug.cgi?id=158949 rdar://problem/26867866 Reviewed by Simon Fraser. No new tests because there is no behavior change. This reverts changes from https://bugs.webkit.org/show_bug.cgi?id=158148 and instead uses -[CAContext commitPriority:] to prevent flicker when moving a layer between contexts. commitPriority allows the layer to be added to the destination context before it is removed from the source context. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: remove m_secondaryVideoLayer. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: ditto (WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenGravity): ditto. (WebCore::MediaPlayerPrivateAVFoundationObjC::syncTextTrackBounds): ditto. (WebCore::MediaPlayerPrivateAVFoundationObjC::destroyVideoLayer): ditto. (WebCore::MediaPlayerPrivateAVFoundationObjC::updateVideoLayerGravity): ditto. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: ditto (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::addDisplayLayer): ditto * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: ditto (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::createPreviewLayers):ditto * platform/graphics/avfoundation/objc/VideoFullscreenLayerManager.h: ditto * platform/graphics/avfoundation/objc/VideoFullscreenLayerManager.mm: ditto (WebCore::VideoFullscreenLayerManager::setVideoLayer): ditto (WebCore::VideoFullscreenLayerManager::setVideoFullscreenLayer): ditto and adopt commitPriority. (WebCore::VideoFullscreenLayerManager::setVideoFullscreenFrame): ditto (WebCore::VideoFullscreenLayerManager::setVideoLayers): Deleted. (WebCore::VideoFullscreenLayerManager::didDestroyVideoLayer): remove m_secondaryVideoLayer. * platform/spi/cocoa/QuartzCoreSPI.h: Add commitPriority. Canonical link: https://commits.webkit.org/177117@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Jeremy Jones
committed
Jun 22, 2016
1 parent
a6a345e
commit 50e007e
Showing
8 changed files
with
63 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters