RESOLVED FIXED 234099
[GPU Process] [Filters] Add the encoding and decoding for FEImage
https://bugs.webkit.org/show_bug.cgi?id=234099
Summary [GPU Process] [Filters] Add the encoding and decoding for FEImage
Said Abou-Hallawa
Reported 2021-12-09 12:49:01 PST
The encoding and decoding of FEImage requires special handling. FEImage needs to encode and decode the RenderingResourceIdentifier of the Image or the ImageBuffer of its SourceImage. FEImage needs to send the Image or the ImageBuffer of its SourceImage separately to GPUProcess. But before applying the filter all the FEImages need to resolve their RenderingResourceIdentifiers back to an Image or an ImageBuffer.
Attachments
Patch (25.83 KB, patch)
2021-12-09 15:35 PST, Said Abou-Hallawa
wenson_hsieh: review+
Patch (25.77 KB, patch)
2021-12-09 17:44 PST, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2021-12-09 15:35:53 PST
Said Abou-Hallawa
Comment 2 2021-12-09 15:48:12 PST
There should be two follow-up patches: bug 234108: Convert FilterEffectVector to be a Vector of Ref<FilterEffect> bug 234109: Move FEImage to the 'platform' directory bug 234109 is essential to remove the layering violation which this patch is introducing by including the header file SVGFEImage.h in the source file DisplayListRecorder.cpp.
Wenson Hsieh
Comment 3 2021-12-09 16:28:58 PST
Comment on attachment 446622 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446622&action=review r=mews > Source/WebKit/GPUProcess/graphics/RemoteDisplayListRecorder.cpp:248 > + Ref<Image> image = BitmapImage::create(RefPtr<NativeImage> { nativeImage }); Nit - I don't think this local variable adds much here.
Said Abou-Hallawa
Comment 4 2021-12-09 17:44:27 PST
Said Abou-Hallawa
Comment 5 2021-12-09 17:45:35 PST
Comment on attachment 446622 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446622&action=review >> Source/WebKit/GPUProcess/graphics/RemoteDisplayListRecorder.cpp:248 >> + Ref<Image> image = BitmapImage::create(RefPtr<NativeImage> { nativeImage }); > > Nit - I don't think this local variable adds much here. The local variable was removed.
EWS
Comment 6 2021-12-09 18:40:20 PST
Committed r286824 (245058@main): <https://commits.webkit.org/245058@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446645 [details].
Radar WebKit Bug Importer
Comment 7 2021-12-09 18:41:16 PST
Note You need to log in before you can comment on or make changes to this bug.