Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6b3061ae38db5aa054c87842d19c0b3d90d853bb
https://github.com/WebKit/WebKit/commit/6b3061ae38db5aa054c87842d19c0b3d90d853bb
Author: Said Abou-Hallawa <[email protected]>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M LayoutTests/TestExpectations
A LayoutTests/compositing/hdr/hdr-basic-image-dynamic-range-limit.html
A LayoutTests/fast/images/hdr-basic-image-dynamic-range-limit-expected.html
A LayoutTests/fast/images/hdr-basic-image-dynamic-range-limit.html
A
LayoutTests/fast/images/hdr-image-layer-sdr-dynamic-range-limit-expected.html
A LayoutTests/fast/images/hdr-image-layer-sdr-dynamic-range-limit.html
M LayoutTests/platform/ios/TestExpectations
A
LayoutTests/platform/ios/compositing/hdr/hdr-basic-image-dynamic-range-limit-expected.txt
M LayoutTests/platform/mac-wk2/TestExpectations
A
LayoutTests/platform/mac-wk2/compositing/hdr/hdr-basic-image-dynamic-range-limit-expected.txt
M Source/WTF/wtf/PlatformHave.h
M Source/WebCore/platform/graphics/BitmapImage.cpp
M Source/WebCore/platform/graphics/NativeImage.cpp
M Source/WebCore/platform/graphics/NativeImage.h
M Source/WebCore/platform/graphics/NativeImageSource.h
M Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
M Source/WebCore/platform/graphics/cg/NativeImageCG.cpp
M Source/WebCore/rendering/BackgroundPainter.cpp
M Source/WebCore/rendering/RenderLayer.cpp
M Source/WebKit/WebProcess/GPU/graphics/RemoteResourceCacheProxy.cpp
Log Message:
-----------
[HDR] Tonemap the HDR image when "dynamic-range-limit: standard;" is applied
https://bugs.webkit.org/show_bug.cgi?id=292463
rdar://150555655
Reviewed by Simon Fraser.
An HDR image with "dynamic-range-limit: standard;" should be excluded from the
layer detection for HDR content. When drawing this image, it should also be
tone-mapped manually. The tone-mapping can be done by drawing the HDR image to
un-accelerated ImageBuffer which is created with SDR color-space.
* LayoutTests/TestExpectations:
* LayoutTests/compositing/hdr/hdr-basic-image-dynamic-range-limit.html: Added.
* LayoutTests/fast/images/hdr-basic-image-dynamic-range-limit-expected.html:
Added.
* LayoutTests/fast/images/hdr-basic-image-dynamic-range-limit.html: Added.
*
LayoutTests/fast/images/hdr-image-layer-sdr-dynamic-range-limit-expected.html:
Added.
* LayoutTests/fast/images/hdr-image-layer-sdr-dynamic-range-limit.html: Added.
* LayoutTests/platform/ios/TestExpectations:
*
LayoutTests/platform/ios/compositing/hdr/hdr-basic-image-dynamic-range-limit-expected.txt:
Added.
* LayoutTests/platform/mac-wk2/TestExpectations:
*
LayoutTests/platform/mac-wk2/compositing/hdr/hdr-basic-image-dynamic-range-limit-expected.txt:
Added.
* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::draw):
* Source/WebCore/platform/graphics/NativeImage.cpp:
(WebCore::NativeImage::hasHDRContent const):
(WebCore::NativeImage::drawWithToneMapping):
* Source/WebCore/platform/graphics/NativeImage.h:
* Source/WebCore/platform/graphics/NativeImageSource.h:
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::drawNativeImageInternal):
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::appendImageSourceOption):
* Source/WebCore/platform/graphics/cg/NativeImageCG.cpp:
(WebCore::NativeImage::draw):
* Source/WebCore/rendering/BackgroundPainter.cpp:
(WebCore::BackgroundPainter::paintFillLayer const):
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects const):
* Source/WebKit/WebProcess/GPU/graphics/RemoteResourceCacheProxy.cpp:
(WebKit::RemoteResourceCacheProxy::recordNativeImageUse):
Canonical link: https://commits.webkit.org/294643@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