Bug 233510 - [GPU Process] [Filters 11/23] Move FilterEffect relative absolutePaintRect calculation to FilterImage
Summary: [GPU Process] [Filters 11/23] Move FilterEffect relative absolutePaintRect ca...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks: 231253
  Show dependency treegraph
 
Reported: 2021-11-25 21:21 PST by Said Abou-Hallawa
Modified: 2021-11-29 21:34 PST (History)
16 users (show)

See Also:


Attachments
Patch (28.17 KB, patch)
2021-11-25 21:27 PST, Said Abou-Hallawa
heycam: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (29.78 KB, patch)
2021-11-25 22:53 PST, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2021-11-25 21:21:09 PST
This is a step towards simplifying the FilterEffect geometry and removing the FilterImage from FilterEffect.
Comment 1 Said Abou-Hallawa 2021-11-25 21:27:28 PST
Created attachment 445169 [details]
Patch
Comment 2 Cameron McCormack (:heycam) 2021-11-25 21:48:51 PST
Comment on attachment 445169 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=445169&action=review

> Source/WebCore/ChangeLog:11
> +        getting the moved the absolutePaintRect of a FilterEffect. No need for

"getting the moved absolutePaintRect"?

> Source/WebCore/ChangeLog:12
> +        clamping scaling since all FilterImages have to be within MaxClampedArea.

"clamping or scaling"

> Source/WebCore/platform/graphics/filters/FilterImage.cpp:60
> +IntRect FilterImage::relativeAbsoluteImageRect(const FilterImage& origin) const

"relativeAbsoluteImageRect" is a confusing name for me, since "relative" and "absolute" are opposites. I'm struggling to come up with a good name -- something like "absoluteImageRectRelativeToFilterImage"? Not sure. Maybe there could be a better name if the "this" and argument were the other way around?
Comment 3 Said Abou-Hallawa 2021-11-25 22:53:59 PST
Created attachment 445170 [details]
Patch
Comment 4 Said Abou-Hallawa 2021-11-25 23:18:04 PST
Comment on attachment 445169 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=445169&action=review

>> Source/WebCore/platform/graphics/filters/FilterImage.cpp:60
>> +IntRect FilterImage::relativeAbsoluteImageRect(const FilterImage& origin) const
> 
> "relativeAbsoluteImageRect" is a confusing name for me, since "relative" and "absolute" are opposites. I'm struggling to come up with a good name -- something like "absoluteImageRectRelativeToFilterImage"? Not sure. Maybe there could be a better name if the "this" and argument were the other way around?

We agreed on naming it absoluteImageRectRelativeTo() at least for now.
Comment 5 EWS 2021-11-25 23:53:46 PST
Committed r286172 (244555@main): <https://commits.webkit.org/244555@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 445170 [details].
Comment 6 Radar WebKit Bug Importer 2021-11-25 23:54:25 PST
<rdar://problem/85761241>