Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Issue 1735773003: 4f gradient negative-dx interval fixup for kMirror_TileMode (Closed)

Created:
4 years, 10 months ago by f(malita)
Modified:
4 years, 10 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/b976b2761f0bb651edb1e7fe3becc1889cfe3fc4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M src/effects/gradients/Sk4fGradientBase.cpp View 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
f(malita)
4 years, 10 months ago (2016-02-25 20:44:58 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1735773003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1735773003/1
4 years, 10 months ago (2016-02-25 20:45:05 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-25 21:03:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1735773003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1735773003/1
4 years, 10 months ago (2016-02-25 21:23:21 UTC) #10
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 10 months ago (2016-02-25 21:23:22 UTC) #11
reed1
lgtm
4 years, 10 months ago (2016-02-25 21:36:16 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 21:37:30 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/b976b2761f0bb651edb1e7fe3becc1889cfe3fc4

Powered by Google App Engine
This is Rietveld 408576698