DescriptionFix recursive computation of filter bounds for drop shadow,
morphology, blur.
[Reland with fixed tests.]
Because we're computing "backwards" from a clip rect of destination
pixels to be filled to the required source pixels, we should use tail
recursion rather than head recursion in onFilterBounds().
This actually only makes a difference for drop-shadow, where
the computation is non-commutative. Blur and morphology commute, but I
moved them to tail recursion anyway for clarity (so all onFilterBounds
use tail recursion).
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/1150a6d151571fb6ee816dadec844ae7ab53948a
Patch Set 1 #Patch Set 2 : Use an identity matrix for the test, not an uninit one :( #
Messages
Total messages: 10 (0 generated)
|