| Summary: | Remove the special DisplayList handling in CanvasRenderingContext2DBase | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||
| Component: | Canvas | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | cdumez, commit-queue, dino, esprehn+autocc, ews-watchlist, gyuyoung.kim, mmaxfield, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Said Abou-Hallawa
2020-03-09 13:09:19 PDT
Created attachment 393064 [details]
Patch
Created attachment 393096 [details]
Patch
Comment on attachment 393096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393096&action=review > Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:2062 > if (UNLIKELY(m_usesDisplayListDrawing)) { We should probably go farther and delete the whole thing, LayoutTests and all. Comment on attachment 393096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393096&action=review >> Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:2062 >> if (UNLIKELY(m_usesDisplayListDrawing)) { > > We should probably go farther and delete the whole thing, LayoutTests and all. This DisplayList recording and replay back is used by CustomPaintCanvas, OffscreenCanvas and WebGLRenderingContextBase. A CanvasRenderingContext2DBase is created without an ImageBuffer. The drawing commands are recorded and later replayed back on the context of a temporary ImageBuffer. It will be nice if we can remove that. But at least for now I think it is okay to remove the code duplication. Comment on attachment 393096 [details] Patch Clearing flags on attachment: 393096 Committed r258219: <https://trac.webkit.org/changeset/258219> All reviewed patches have been landed. Closing bug. |