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!
Also: case RemoteLayerBackingStore::LayerContentsType::IOSurface: { auto surface = WebCore::IOSurface::createFromSendRight(WTFMove(machSendRight), DestinationColorSpace::SRGB()); contents = surface ? surface->asLayerContents() : nil; break;
<rdar://problem/101760075>
Fixed in https://bugs.webkit.org/show_bug.cgi?id=247776 *** This bug has been marked as a duplicate of bug 247776 ***