[webkit-changes] [WebKit/WebKit] 9180e6: REGRESSION(260512 at main): HDR images should be draw...

Said Abou-Hallawa noreply at github.com
Fri Mar 3 09:13:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9180e60fc30a62f676cedb224f881ff24ef8f682
      https://github.com/WebKit/WebKit/commit/9180e60fc30a62f676cedb224f881ff24ef8f682
  Author: Said Abou-Hallawa <said at apple.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/GraphicsContext.h
    M Source/WebCore/platform/graphics/ImageBuffer.cpp
    M Source/WebCore/platform/graphics/cg/NativeImageCG.cpp

  Log Message:
  -----------
  REGRESSION(260512 at main): HDR images should be drawn directly if the destination context has HDR color space
https://bugs.webkit.org/show_bug.cgi?id=253275
rdar://106055782

Reviewed by Simon Fraser.

CoreGraphics should draw the HDR images directly to the destination context if
it has HDR color space.

ImageBuffer::draw() should call GraphicsContext::drawNativeImageInternal() to
prevent the possible recursion from NativeImage::draw() to ImageBuffer::draw().

* Source/WebCore/platform/graphics/GraphicsContext.h:
* Source/WebCore/platform/graphics/ImageBuffer.cpp:
(WebCore::ImageBuffer::draw):
(WebCore::ImageBuffer::drawConsuming):
* Source/WebCore/platform/graphics/cg/NativeImageCG.cpp:
(WebCore::NativeImage::draw):

Canonical link: https://commits.webkit.org/261149@main




More information about the webkit-changes mailing list