| Summary: | [GPU Process] Don't record DisplayList items if the GPU Process has been terminated | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||
| Component: | Canvas | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | dino, 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
2021-03-28 22:59:53 PDT
Created attachment 424526 [details]
Patch
Comment on attachment 424526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424526&action=review > Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h:68 > - virtual void willAppendItemOfType(ItemType) { } > + virtual bool canAppendItemOfType(ItemType) { return false; } What is the caller supposed to do with the return value? Comment on attachment 424526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424526&action=review >> Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.h:68 >> + virtual bool canAppendItemOfType(ItemType) { return false; } > > What is the caller supposed to do with the return value? If the return value is 'false', the caller will not append the DisplayList::Item to the DisplayList. The append() method in this header file bails out early if the return value is 'false' Committed r275185: <https://commits.webkit.org/r275185> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424526 [details]. |