DescriptionAllow negative values in SkBlurImageFilter sigma.
There are two ways negative sigma values may occur: in
the original filter parameters, or after multiplication
by a negative scaling CTM. The former case is
invalid according to the spec, so we continue to check
for it at validation time. In the latter case, we should
interpret it as a horizontal flip in the kernel pixel
access, and simply take the absolute value (since the
filter kernel is symmetric).
Also refactor all this logic into a single place for the
CPU, GPU and onFilterBounds() paths.
BUG=https://code.google.com/p/chromium/issues/detail?id=409602
Committed: https://skia.googlesource.com/skia/+/32673b99a4fb5d798206eb7665b730ed0b4597a0
Patch Set 1 #Patch Set 2 : Add test #Patch Set 3 : Five is the new three. :) #
Total comments: 4
Patch Set 4 : Restore deserialization check; use SkScalarAbs() #Patch Set 5 : Fix re: sugoi's comment #Messages
Total messages: 14 (4 generated)
|