aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkMergeImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-02-25 13:37:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-25 13:37:28 -0800
commitb976b2761f0bb651edb1e7fe3becc1889cfe3fc4 (patch)
tree6a2bcec031e92159e9e8b86906aa0cecc54c40f3 /src/effects/SkMergeImageFilter.cpp
parent00fddebe56fabea67dcc08762805c1294eebf5bf (diff)
4f gradient negative-dx interval fixup for kMirror_TileMode
4f intervals are meant to be monotonically increasing in X. This means we invert the point order when dx < 0: [0...1) -> (1...0] For kMirror_TileMode, we also append a duplicate/flipped interval sequence and expand the range to 2: [0...1) -> [0...1)[1...2) When dx < 0, the current logic yields (1...0] -> (1...0](2...1] which violates the interval monotonicity. To achieve the proper order, we need to swap the two halves: (1...0] -> (1...0](2...1] -> (2...1](1...0] R=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1735773003 Review URL: https://codereview.chromium.org/1735773003
Diffstat (limited to 'src/effects/SkMergeImageFilter.cpp')
0 files changed, 0 insertions, 0 deletions