| Summary: | [Cairo][GPUP] GraphicsContextGLOpenGL::paintToCanvas can't paint into a remote canvas | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||||
| Component: | WebGL | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | dino, don.olmstead, ews-watchlist, graouts, kbr, kkinnunen, kondapallykalyan, mrobinson, webkit-bug-importer, zdobersek | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Fujii Hironori
2021-04-07 00:26:11 PDT
Created attachment 425360 [details]
WIP patch
Created attachment 425436 [details]
Patch
Comment on attachment 425436 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425436&action=review Makes sense to me > Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp:136 > + // CSS styling may cause the canvas's content to be resized on Not sure this comment is valuable enough to copy from CG, it appears to be pointless.. > Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp:140 > + // We want to completely overwrite the previous frame's Maybe you don't need to duplicate this from CG, it appears to be a bit wrong. (there's no previous frame) > Source/WebCore/platform/graphics/cairo/GraphicsContextGLCairo.cpp:147 > + context.drawNativeImage(*image, imageSize, canvasRect, FloatRect(FloatPoint(), imageSize), { CompositeOperator::Copy }); I know you copied CG, but I think this could also be : context.drawNativeImage(*image, imageSize, FloatRect{{}, canvasSize }, FloatRect{{}, imageSize}, { CompositeOperator::Copy }); (e.g. no need to declare canvasRect if you don't anyway declare imageRect either. Yup, I just copied the CG port code thoughtlessly. Will fix. Thank you very much. Created attachment 425563 [details]
Patch
Comment on attachment 425563 [details] Patch Clearing flags on attachment: 425563 Committed r275780 (236353@main): <https://commits.webkit.org/236353@main> All reviewed patches have been landed. Closing bug. |