Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dfcca6f9900ac6564be76443848bf518bf8c4bf2
https://github.com/WebKit/WebKit/commit/dfcca6f9900ac6564be76443848bf518bf8c4bf2
Author: Said Abou-Hallawa <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Source/WebCore/Configurations/AllowedSPI.toml
M Source/WebCore/PAL/pal/spi/cg/ImageIOSPI.h
M Source/WebCore/platform/graphics/cocoa/CVPixelBufferUtilities.cpp
M Source/WebCore/platform/graphics/cocoa/CVPixelBufferUtilities.h
M Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp
Log Message:
-----------
REGRESSION(313341@main): All gain-map images are decoded into 8-bits per
channel pixels
https://bugs.webkit.org/show_bug.cgi?id=318046
rdar://179152566
Reviewed by Mike Wyrzykowski.
CGImageCreatePixelBufferAttributesForHDRTarget() is to get the attributes of the
target CVPixelBuffer. The target pixel format is set explicitly to 'RGhA'.
Instead of calling VTCreateCGImageFromCVPixelBuffer(),
CVPixelBufferGetIOSurface()
and CGImageCreateFromIOSurface() are used to get a CGImage from the target
CVPixelBuffer.
* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/PAL/pal/spi/cg/ImageIOSPI.h:
(CF_CLOSED_ENUM):
* Source/WebCore/platform/graphics/cocoa/CVPixelBufferUtilities.cpp:
(WebCore::createScratchCVPixelBuffer):
* Source/WebCore/platform/graphics/cocoa/CVPixelBufferUtilities.h:
* Source/WebCore/platform/graphics/cocoa/ShareableGainMap.cpp:
(WebCore::setDictionaryValue):
(WebCore::ShareableGainMap::applyGainMapToBaseImage const):
Canonical link: https://commits.webkit.org/316069@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications