| Summary: | BifurcatedGraphicsContext doesn't bifurcate draw{Tiled}Image | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||||
| Component: | New Bugs | Assignee: | Tim Horton <thorton> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | dino, hi, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Tim Horton
2021-10-07 12:49:15 PDT
Created attachment 440529 [details]
Patch
Actually, wait... drawImage() has the same problem. Created attachment 440531 [details]
Patch
Comment on attachment 440531 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440531&action=review r=me > Source/WebCore/platform/graphics/BifurcatedGraphicsContext.h:102 > + ImageDrawResult drawImage(Image&, const FloatRect& destination, const FloatRect& source, const ImagePaintingOptions& = { ImageOrientation::FromImage }) final; Aside: it's kinda odd that the other `drawImage` are also `virtual` even though they just call into one of the other `drawImage` Comment on attachment 440531 [details]
Patch
btw do we also need to do `drawImageBuffer` (and maybe somehow `drawConsumingImageBuffer`)?
(In reply to Devin Rousso from comment #5) > Comment on attachment 440531 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=440531&action=review > > r=me > > > Source/WebCore/platform/graphics/BifurcatedGraphicsContext.h:102 > > + ImageDrawResult drawImage(Image&, const FloatRect& destination, const FloatRect& source, const ImagePaintingOptions& = { ImageOrientation::FromImage }) final; > > Aside: it's kinda odd that the other `drawImage` are also `virtual` even > though they just call into one of the other `drawImage` I agree! Need to check if that is just an oversight (of mine, from June) or if something (DisplayList?) actually cares.(In reply to Devin Rousso from comment #6) > Comment on attachment 440531 [details] > Patch > > btw do we also need to do `drawImageBuffer` (and maybe somehow > `drawConsumingImageBuffer`)? These *do* eventually just turn into drawNativeImage, so they should be OK. Can't get a GeneratedImage-backed ImageBuffer. Agree that it looks funny though. Committed r283747 (242669@main): <https://commits.webkit.org/242669@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440531 [details]. |