Bug 252182

Summary: Make GraphicsContext::drawNativeImage() platform independent
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 245858    

Description Said Abou-Hallawa 2023-02-13 12:10:07 PST
This will allow dealing with HDR images before calling drawPlatformImage.

All implementations of drawNativeImage() will be renamed drawPlatformImage(). A new implementation for drawNativeImage() will be added to GraphicsContext. All it does it calls the new method NativeImage::draw(). For now NativeImage::draw() will just call GraphicsContext ::drawPlatformImage() which is the original implementation of GraphicsContext::drawNativeImage().
Comment 1 Radar WebKit Bug Importer 2023-02-13 12:10:57 PST
<rdar://problem/105409701>
Comment 2 Said Abou-Hallawa 2023-02-13 12:15:15 PST
Pull request: https://github.com/WebKit/WebKit/pull/10051
Comment 3 EWS 2023-02-14 08:28:05 PST
Committed 260255@main (49563768826f): <https://commits.webkit.org/260255@main>

Reviewed commits have been landed. Closing PR #10051 and removing active labels.