[Webkit-unassigned] [Bug 232705] New: [GPU Process] [Filters 6/] Simplify FilterEffect geometry

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 4 02:40:13 PDT 2021


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

            Bug ID: 232705
           Summary: [GPU Process] [Filters 6/] Simplify FilterEffect
                    geometry
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

FilterEffect should be able to calculate and hold only two rectangles:

1) primitiveSubRegion which is defined here https://www.w3.org/TR/filter-effects-1/#FilterPrimitiveSubRegion
2) imageRect which is the rectangle of the result FilterImage.

And to simplify the calculation we can keep these two rectangles as FloatRects and they will be in filter coordinates. But

1) Only when drawing to a FilterImage, we should convert from filter coordinates to absolute coordinates. 
2) And when getting pixels from or putting pixels in a FilterImage, we will convert the FloatRect to a IntRect.

And since the plan is to remove the result FilterImage from the FilterEffect, we are going to keep these rectangles in FilterImage. The conversion from filter coordinates to absolute coordinates will happen through the Filter class.

-- 
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/20211104/76a7b533/attachment.htm>


More information about the webkit-unassigned mailing list