Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae27ae04f5e73ea413c5e011676e6f9aba818dce
      
https://github.com/WebKit/WebKit/commit/ae27ae04f5e73ea413c5e011676e6f9aba818dce
  Author: Said Abou-Hallawa <[email protected]>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/platform/graphics/BitmapImageDescriptor.cpp
    M Source/WebCore/platform/graphics/ImageDecoder.cpp
    M Source/WebCore/platform/graphics/ImageDecoder.h
    M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp

  Log Message:
  -----------
  [HDR] Enable HDR image support for layout tests
https://bugs.webkit.org/show_bug.cgi?id=287892
rdar://145088080

Reviewed by Simon Fraser.

This was blocked by the misconception that we have to decode the image to know
its headroom. It turns out that ImageIO can return the headroom in the metadata
of the CGImageSource. So no image decoding is needed before drawing the image.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/platform/graphics/BitmapImageDescriptor.cpp:
(WebCore::BitmapImageDescriptor::headroom const):
* Source/WebCore/platform/graphics/ImageDecoder.cpp:
(WebCore::ImageDecoder::fetchFrameMetaDataAtIndex const):
* Source/WebCore/platform/graphics/ImageDecoder.h:
(WebCore::ImageDecoder::frameHeadroomAtIndex const):
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::headroomFromProperties):
(WebCore::ImageDecoderCG::fetchFrameMetaDataAtIndex const):

Canonical link: https://commits.webkit.org/290584@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

Reply via email to