Bug 230375

Summary: find a way to re-use CGBitmapContextCreateForFlatteningImage logic for ShareableBitmap creation
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Cameron McCormack (:heycam) 2021-09-16 14:57:42 PDT
In bug 229021 comment 19 Sam points out the existence of CGBitmapContextCreateForFlatteningImage, which duplicates some of the logic added in that bug for creating a CGBitmap with a configuration and color space appropriate for converting a CGImage into a ShareableBitmap.  We should look into whether we can use it, to avoid having our own flattening logic.
Comment 1 Radar WebKit Bug Importer 2021-09-23 14:58:25 PDT
<rdar://problem/83466936>