Bug 247254
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 |
Simon Fraser (smfr)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
Also:
case RemoteLayerBackingStore::LayerContentsType::IOSurface: {
auto surface = WebCore::IOSurface::createFromSendRight(WTFMove(machSendRight), DestinationColorSpace::SRGB());
contents = surface ? surface->asLayerContents() : nil;
break;
Radar WebKit Bug Importer
<rdar://problem/101760075>
Simon Fraser (smfr)
Fixed in https://bugs.webkit.org/show_bug.cgi?id=247776
*** This bug has been marked as a duplicate of bug 247776 ***