RESOLVED FIXED 222960
[GPU Process] ImageBitmap should release its ImageBuffer in the main thread
https://bugs.webkit.org/show_bug.cgi?id=222960
Summary [GPU Process] ImageBitmap should release its ImageBuffer in the main thread
Said Abou-Hallawa
Reported 2021-03-08 23:53:01 PST
The ImageBuffer of the ImageBitmap should be deleted on the main thread only since its deletion may require sending messages to the GPUP.
Attachments
Patch (1.59 KB, patch)
2021-03-08 23:55 PST, Said Abou-Hallawa
simon.fraser: review+
ews-feeder: commit-queue-
Patch (1.74 KB, patch)
2021-03-09 10:45 PST, Said Abou-Hallawa
no flags
Patch (1.73 KB, patch)
2021-03-09 11:08 PST, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2021-03-08 23:55:13 PST
Simon Fraser (smfr)
Comment 2 2021-03-09 10:07:16 PST
Comment on attachment 422668 [details] Patch It this covered by tests?
Said Abou-Hallawa
Comment 3 2021-03-09 10:45:44 PST
Said Abou-Hallawa
Comment 4 2021-03-09 10:46:12 PST
(In reply to Simon Fraser (smfr) from comment #2) > Comment on attachment 422668 [details] > Patch > > It this covered by tests? imported/w3c/web-platform-tests/html/canvas/element/imagebitmap/createImageBitmap-in-worker-transfer.html
Chris Dumez
Comment 5 2021-03-09 10:46:57 PST
Comment on attachment 422728 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422728&action=review > Source/WebCore/html/ImageBitmap.cpp:848 > + callOnMainThread([imageBuffer = WTFMove(imageBuffer)]() mutable { }); I doubt the mutable and () are needed.
Simon Fraser (smfr)
Comment 6 2021-03-09 10:49:11 PST
(In reply to Said Abou-Hallawa from comment #4) > (In reply to Simon Fraser (smfr) from comment #2) > > Comment on attachment 422668 [details] > > Patch > > > > It this covered by tests? > > imported/w3c/web-platform-tests/html/canvas/element/imagebitmap/ > createImageBitmap-in-worker-transfer.html Please note in the changeling.
Said Abou-Hallawa
Comment 7 2021-03-09 11:08:43 PST
EWS
Comment 8 2021-03-09 12:03:33 PST
Committed r274164: <https://commits.webkit.org/r274164> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422731 [details].
Radar WebKit Bug Importer
Comment 9 2021-03-09 12:04:39 PST
Said Abou-Hallawa
Comment 10 2021-03-12 10:59:07 PST
*** Bug 222879 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.