DescriptionRandomize seed for SkDiscretePathEffect::filterPath()
Fix for https://code.google.com/p/skia/issues/detail?id=2581. Randomizes
the seed in SkDiscretePathEffect::filterPath(). Prior to this we were
using the path length as a seed.
Now, if we have two different paths with identical contents and we
apply an SkDiscretePathEffect to each, we obtain two different random
paths. Previously, we would obtain two overlapping paths (identical
path contents leading to the same seed).
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/39e58adb99111acbcc0b115e44812a3090bd6a2b
Patch Set 1 #Patch Set 2 : Remove usage of rand() - do not want to use stdlib #Patch Set 3 : Remove unnecessary function #
Total comments: 18
Patch Set 4 : Randomization depends on caller supplied seed and path length as discussed in skbug.com/2581 #
Total comments: 6
Patch Set 5 : Add doc + flatten/unflatten lines #Patch Set 6 : don't multiply seedAssist with seed, xor instead #Messages
Total messages: 14 (0 generated)
|