DescriptionImage filters: fix srcOffset handling in asFragmentProcessor() path.
Filters such as SkMatrixConvolutionImageFilter which use the
asFragmentProcessor() path were not correctly handling srcOffset.
It is correctly applied to the bounds, but the srcRect and dstRect
were computed from the pre-offset bounds.
The fix is to move them to just above where they're used in drawing.
Note: this change adds a new test case to the imagefiltersgraph GM,
so it will have to be rebaselined post-landing.
BUG=skia:4855
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1637443003
Committed: https://skia.googlesource.com/skia/+/eae84c2e0e2126374cd488a1c8a3e18169145635
Patch Set 1 #Patch Set 2 : Windows fix #Patch Set 3 : Update to ToT #
Messages
Total messages: 21 (11 generated)
|