[Webkit-unassigned] [Bug 253275] New: REGRESSION(260512 at main): HDR images should be drawn directly if the destination context has HDR color space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 2 15:36:15 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=253275

            Bug ID: 253275
           Summary: REGRESSION(260512 at main): HDR images should be drawn
                    directly if the destination context has HDR color
                    space
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: sabouhallawa at apple.com

When playing some HDR videos, RemoteMediaPlayerManagerProxy::bitmapImageForCurrentTime() may create a ShareableBitmap with HDR colorSpace which it gets it from MediaPlayer. In this case, the workaround in NativeImage::draw() will cause recursion.

The workaround draws the HDR NativeImage to a temporary ImageBuffer. This temporary ImageBuffer will have HDR colorSpace also because it will match the colorSpace of destinationContext which is the colorSpace of MediaPlayer. When we call ImageBuffer::draw(), a temporary NativeImage will be created from this ImageBuffer. This NativeImage will have HDR colorSpace also. So when NativeImage::draw() is called from ImageBuffer::draw(), it will go through the workaround code path again. This will cause an infinite recursion.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230302/4174c0f8/attachment.htm>


More information about the webkit-unassigned mailing list