Bug 252182 - Make GraphicsContext::drawNativeImage() platform independent
Summary: Make GraphicsContext::drawNativeImage() platform independent
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks: 245858
  Show dependency treegraph
 
Reported: 2023-02-13 12:10 PST by Said Abou-Hallawa
Modified: 2023-02-14 08:28 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.