[Webkit-unassigned] [Bug 247254] New: UI-process mapped IOSurfaces are always tagged as sRGB

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 30 23:12:32 PDT 2022


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

            Bug ID: 247254
           Summary: UI-process mapped IOSurfaces are always tagged as sRGB
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Process Model
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

static void recursivelyMapIOSurfaceBackingStore(CALayer *layer)
{
    if (layer.contents && CFGetTypeID((__bridge CFTypeRef)layer.contents) == CAMachPortGetTypeID()) {
        MachSendRight port = MachSendRight::create(CAMachPortGetPort((__bridge CAMachPortRef)layer.contents));
        auto surface = WebCore::IOSurface::createFromSendRight(WTFMove(port), WebCore::DestinationColorSpace::SRGB());
        layer.contents = surface ? surface->asLayerContents() : nil;
    }


DestinationColorSpace::SRGB!

-- 
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/20221031/f3a845b7/attachment.htm>


More information about the webkit-unassigned mailing list