diff options
author | fmalita <fmalita@chromium.org> | 2016-02-25 13:37:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-25 13:37:28 -0800 |
commit | b976b2761f0bb651edb1e7fe3becc1889cfe3fc4 (patch) | |
tree | 6a2bcec031e92159e9e8b86906aa0cecc54c40f3 /src/effects/SkPictureImageFilter.cpp | |
parent | 00fddebe56fabea67dcc08762805c1294eebf5bf (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/SkPictureImageFilter.cpp')
0 files changed, 0 insertions, 0 deletions