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().
<rdar://problem/105409701>
Pull request: https://github.com/WebKit/WebKit/pull/10051
Committed 260255@main (49563768826f): <https://commits.webkit.org/260255@main> Reviewed commits have been landed. Closing PR #10051 and removing active labels.