RESOLVED DUPLICATE of bug 247776 247254
UI-process mapped IOSurfaces are always tagged as sRGB
https://bugs.webkit.org/show_bug.cgi?id=247254
Summary UI-process mapped IOSurfaces are always tagged as sRGB
Simon Fraser (smfr)
Reported 2022-10-30 23:12:32 PDT
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!
Attachments
Simon Fraser (smfr)
Comment 1 2022-10-30 23:19:35 PDT
Also: case RemoteLayerBackingStore::LayerContentsType::IOSurface: { auto surface = WebCore::IOSurface::createFromSendRight(WTFMove(machSendRight), DestinationColorSpace::SRGB()); contents = surface ? surface->asLayerContents() : nil; break;
Radar WebKit Bug Importer
Comment 2 2022-10-31 09:16:05 PDT
Simon Fraser (smfr)
Comment 3 2023-04-06 16:47:47 PDT
Fixed in https://bugs.webkit.org/show_bug.cgi?id=247776 *** This bug has been marked as a duplicate of bug 247776 ***
Note You need to log in before you can comment on or make changes to this bug.