Bug 241674

Summary: [GPUProcess] [CG] Create ShareableBitmap with sRGB color-space when sending NativeImages to GPUProcess
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: Layout and RenderingAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Said Abou-Hallawa 2022-06-15 21:16:20 PDT
Sometimes CG fails to create GraphicsContext for some color-spaces. The conversion to sRGB will happen anyway when drawing the image to the destination GraphicsContext. So let's create ShareableBitmap with sRGB color-space when sending NativeImages to GPUProcess.
Comment 1 Said Abou-Hallawa 2022-06-15 21:16:49 PDT
rdar://95048318
Comment 2 Said Abou-Hallawa 2022-06-15 21:23:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1571
Comment 3 Alexey Proskuryakov 2022-06-16 11:24:19 PDT
> The conversion to sRGB will happen anyway when drawing the image to the destination GraphicsContext. 

This sounds surprising. How do we support bigger color spaces then?
Comment 4 Said Abou-Hallawa 2022-06-21 02:40:14 PDT
This seems to be a bug in one of the underlying frameworks.