Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 084a860905a9fd5825ccfcdec0a95301dbacd86c
https://github.com/WebKit/WebKit/commit/084a860905a9fd5825ccfcdec0a95301dbacd86c
Author: Gerald Squelart <[email protected]>
Date: 2025-03-11 (Tue, 11 Mar 2025)
Changed paths:
M Source/WebCore/PlatformMac.cmake
M Source/WebCore/SourcesCocoa.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
M Source/WebCore/platform/graphics/ca/cocoa/PlatformDynamicRangeLimitCocoa.h
A
Source/WebCore/platform/graphics/ca/cocoa/PlatformDynamicRangeLimitCocoa.mm
M Source/WebCore/platform/graphics/cg/UTIRegistry.mm
M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.h
M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm
M Source/WebCore/platform/graphics/mac/controls/SwitchThumbMac.mm
M Source/WebKit/UIProcess/mac/WebViewImpl.mm
Log Message:
-----------
Refactor setting the dynamic range limit in CALayers
https://bugs.webkit.org/show_bug.cgi?id=289500
rdar://146698266
Reviewed by Mike Wyrzykowski.
Refactor repeated code (to set a dynamic range limit into one or more CALayers)
into a single implementation.
* Source/WebCore/PlatformMac.cmake:
* Source/WebCore/SourcesCocoa.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
Added PlatformDynamicRangeLimitCocoa.mm, and ensure header
PlatformDynamicRangeLimitCocoa.h is accessible from WebKit.
* Source/WebCore/platform/graphics/ca/cocoa/PlatformDynamicRangeLimitCocoa.h:
(WebCore::setLayerDynamicRangeLimit):
(WebCore::platformDynamicRangeLimitString): Deleted.
* Source/WebCore/platform/graphics/ca/cocoa/PlatformDynamicRangeLimitCocoa.mm:
Added.
(WebCore::layerDynamicRangeLimitSetter):
Hide implementation of setting the dynamic range limit into CALayers.
`layerDynamicRangeLimitSetter` is more efficient when applying the same limit to
multiple layers.
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::setPlatformDynamicRangeLimit):
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::setPlatformDynamicRangeLimit):
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::layersAreInitialized):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::setPlatformDynamicRangeLimit):
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::setDynamicRangeLimitRecursive):
(WebKit::setDynamicRangeLimit):
(WebKit::WebViewImpl::updateHDRState):
(WebKit::setEDRStrengthRecursive): Deleted.
(WebKit::setEDRStrength): Deleted.
Use the new PlatformDynamicRangeLimitCocoa functions.
* Source/WebCore/platform/graphics/cg/UTIRegistry.mm:
* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.h:
* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm:
* Source/WebCore/platform/graphics/mac/controls/SwitchThumbMac.mm:
Added missing includes due to shuffling of files in unified build.
Canonical link: https://commits.webkit.org/291990@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes