[webkit-changes] [WebKit/WebKit] 2ba4ec: HDR data is clipped in AVIF images
Said Abou-Hallawa
noreply at github.com
Sat Feb 18 09:02:16 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2ba4ecb0408c03ab5abe7896df68492a784ebeff
https://github.com/WebKit/WebKit/commit/2ba4ecb0408c03ab5abe7896df68492a784ebeff
Author: Said Abou-Hallawa <said at apple.com>
Date: 2023-02-18 (Sat, 18 Feb 2023)
Changed paths:
A LayoutTests/platform/ios/fast/canvas/canvas-drawImage-hdr-video-expected.txt
M Source/WebCore/platform/graphics/NativeImage.cpp
M Source/WebCore/platform/graphics/cairo/NativeImageCairo.cpp
M Source/WebCore/platform/graphics/cg/NativeImageCG.cpp
Log Message:
-----------
HDR data is clipped in AVIF images
https://bugs.webkit.org/show_bug.cgi?id=245858
rdar://100879401
Reviewed by Simon Fraser.
This implements a temporary fix for rendering images with HDR data on macOS. The
system libraries on macOS BigSur and Ventura do a smooth conversion for the HDR
to SDR if the destination is a CGBitmapContext. This workaround will be used to
fix this problem by drawing the HDR image to a temporary local CGBitmapContext
before drawing it to the destination context.
* LayoutTests/platform/ios/fast/canvas/canvas-drawImage-hdr-video-expected.txt: Added.
* Source/WebCore/platform/graphics/NativeImage.cpp:
(WebCore::NativeImage::draw): Deleted.
* Source/WebCore/platform/graphics/cairo/NativeImageCairo.cpp:
(WebCore::NativeImage::draw):
* Source/WebCore/platform/graphics/cg/NativeImageCG.cpp:
(WebCore::NativeImage::draw):
Canonical link: https://commits.webkit.org/260512@main
More information about the webkit-changes
mailing list