[Webkit-unassigned] [Bug 213105] New: Refactor SVG Filter Image Data Pipeline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 11 17:23:04 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213105

            Bug ID: 213105
           Summary: Refactor SVG Filter Image Data Pipeline
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: guowei_yang at apple.com
                CC: zimmermann at kde.org

Currently in SVG filters, image pixel data is passed around from filter to filter in one of the three forms, m_imageBufferResult (ImageBuffer), m_unmultipliedImageResult (ImageData) or m_premultipliedImageResult (ImageData). For any given SVG filter object, of the three pixel data pointers, only one will be non null. This creates an complication in color space conversion on CG platforms, because color space conversion on CG platforms are handled when writing an ImageBuffer to another ImageBuffer, by the CG backend. However when a filter consumes data from an input which contains no ImageBuffer, but instead ImageData, by calling FilterEffect::copyUnmultipliedResult or FilterEffect::copyPremultipliedResult, color space conversion has to be handled separately.

Therefore, to simplify the color conversion process, one idea would be refactoring the code to only use ImageBuffers to store image information, without using ImageData.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200612/8fc7e998/attachment-0001.htm>


More information about the webkit-unassigned mailing list