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

Issue 1783823002: Generic 4f gradient T sampler fallback (Closed)

Created:
4 years, 9 months ago by f(malita)
Modified:
4 years, 9 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

Generic 4f gradient T sampler fallback Add a generic T sampler fallback impl which uses T series produced by subclasses mapTs() overrides. The fallback path uses the same interval structures as the current optimized linear4f impl, but always sorted in stop order (never inverted to match dx/increasing x order). Enable the new mechanism for 4f linear w/ perspective. Other boring changes: * relocate the interval builder (back) to the base class * add a private header for shared templates BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1783823002 Committed: https://skia.googlesource.com/skia/+/7e6fcf890a1a63249136b8e6d9f4d5a606ef7508

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -311 lines) Patch
M gyp/effects.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/gradients/Sk4fGradientBase.h View 1 2 3 4 5 3 chunks +19 lines, -3 lines 0 comments Download
M src/effects/gradients/Sk4fGradientBase.cpp View 1 2 3 4 5 3 chunks +381 lines, -11 lines 2 comments Download
A src/effects/gradients/Sk4fGradientPriv.h View 1 1 chunk +108 lines, -0 lines 0 comments Download
M src/effects/gradients/Sk4fLinearGradient.h View 2 chunks +6 lines, -7 lines 0 comments Download
M src/effects/gradients/Sk4fLinearGradient.cpp View 1 2 8 chunks +60 lines, -284 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
f(malita)
There's a lot of noise in this one due to the interval builder relocation (changed ...
4 years, 9 months ago (2016-03-10 17:23:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783823002/80001
4 years, 9 months ago (2016-03-10 17:23:56 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 17:34:31 UTC) #10
reed1
https://codereview.chromium.org/1783823002/diff/80001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/1783823002/diff/80001/src/effects/gradients/Sk4fGradientBase.cpp#newcode34 src/effects/gradients/Sk4fGradientBase.cpp:34: return t - SkScalarFloorToInt(t); SkScalarFloorToScalar ? https://codereview.chromium.org/1783823002/diff/80001/src/effects/gradients/Sk4fGradientBase.cpp#newcode40 src/effects/gradients/Sk4fGradientBase.cpp:40: return ...
4 years, 9 months ago (2016-03-10 17:49:37 UTC) #11
f(malita)
https://codereview.chromium.org/1783823002/diff/80001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/1783823002/diff/80001/src/effects/gradients/Sk4fGradientBase.cpp#newcode34 src/effects/gradients/Sk4fGradientBase.cpp:34: return t - SkScalarFloorToInt(t); On 2016/03/10 17:49:37, reed1 wrote: ...
4 years, 9 months ago (2016-03-10 18:46:10 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783823002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783823002/100001
4 years, 9 months ago (2016-03-10 18:46:28 UTC) #14
reed1
lgtm https://codereview.chromium.org/1783823002/diff/100001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/1783823002/diff/100001/src/effects/gradients/Sk4fGradientBase.cpp#newcode279 src/effects/gradients/Sk4fGradientBase.cpp:279: if (fColorsArePremul) { This is clearer now, but ...
4 years, 9 months ago (2016-03-10 19:01:12 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 19:05:58 UTC) #17
f(malita)
https://codereview.chromium.org/1783823002/diff/100001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/1783823002/diff/100001/src/effects/gradients/Sk4fGradientBase.cpp#newcode279 src/effects/gradients/Sk4fGradientBase.cpp:279: if (fColorsArePremul) { On 2016/03/10 19:01:12, reed1 wrote: > ...
4 years, 9 months ago (2016-03-10 19:17:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783823002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783823002/100001
4 years, 9 months ago (2016-03-10 19:17:27 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 19:18:47 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/7e6fcf890a1a63249136b8e6d9f4d5a606ef7508

Powered by Google App Engine
This is Rietveld 408576698