| Summary: | UI-process mapped IOSurfaces are always tagged as sRGB | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | WebKit Process Model | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | g_squelart, heycam, simon.fraser, thorton, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Also:
case RemoteLayerBackingStore::LayerContentsType::IOSurface: {
auto surface = WebCore::IOSurface::createFromSendRight(WTFMove(machSendRight), DestinationColorSpace::SRGB());
contents = surface ? surface->asLayerContents() : nil;
break;
Fixed in https://bugs.webkit.org/show_bug.cgi?id=247776 *** This bug has been marked as a duplicate of bug 247776 *** |
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!