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

Issue 1436663003: Implement multi-color-stops in linear gradients using Sk4f (Closed)

Created:
5 years, 1 month ago by reed1
Modified:
5 years, 1 month ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Implement multi-color-stops in linear gradients using Sk4f #define SK_SUPPORT_LEGACY_LINEAR_GRADIENT_TABLE to restore the old behavior BUG=skia:517 Committed: https://skia.googlesource.com/skia/+/f3182ebc72db2bf2e24119d5cea05f270473a491

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : handles alpha, still operates in premul only" #

Patch Set 5 : unroll inner loop, 18 -> 14 ms #

Patch Set 6 : quad unroll helped. Still need unpremul and dx < 0 #

Patch Set 7 : reorg to have struct per color-stop #

Patch Set 8 : handle premul and unpremul #

Patch Set 9 : add SK_SUPPORT_LEGACY_LINEAR_GRADIENT_TABLE flag #

Patch Set 10 : #

Total comments: 30

Patch Set 11 : use explicit storage type since Sk4f is too tricky for that #

Patch Set 12 : don't pass Sk4f as a parameter type #

Patch Set 13 : combine neg and pos procs #

Patch Set 14 : faster one-shot finders (forward, backward) #

Patch Set 15 : #

Patch Set 16 : clean up, add more comments #

Patch Set 17 : fix win warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -5 lines) Patch
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +26 lines, -1 line 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +341 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (17 generated)
reed1
5 years, 1 month ago (2015-11-10 22:14:03 UTC) #2
reed1
5 years, 1 month ago (2015-11-11 00:44:12 UTC) #4
f(malita)
https://codereview.chromium.org/1436663003/diff/20001/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): https://codereview.chromium.org/1436663003/diff/20001/src/effects/gradients/SkLinearGradient.cpp#newcode713 src/effects/gradients/SkLinearGradient.cpp:713: if (pos[prevIndex] > tiledX || tiledX > pos[prevIndex + ...
5 years, 1 month ago (2015-11-11 05:14:16 UTC) #5
reed1
5 years, 1 month ago (2015-11-12 15:38:53 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/160001
5 years, 1 month ago (2015-11-13 20:31:05 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/3461) Build-Ubuntu-GCC-x86_64-Release-Trybot on ...
5 years, 1 month ago (2015-11-13 20:32:19 UTC) #12
reed1
ptal
5 years, 1 month ago (2015-11-13 20:46:44 UTC) #13
caryclark
lgtm My comments are mostly stream-of-consciousness nits -- not actionable, feel free to ignore if ...
5 years, 1 month ago (2015-11-16 14:44:29 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/200001
5 years, 1 month ago (2015-11-16 15:10:14 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/4226)
5 years, 1 month ago (2015-11-16 15:12:11 UTC) #19
f(malita)
inner loop add + store => lgtm :) https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp#newcode684 src/effects/gradients/SkLinearGradient.cpp:684: * ...
5 years, 1 month ago (2015-11-16 15:16:20 UTC) #20
reed1
https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp#newcode116 src/effects/gradients/SkLinearGradient.cpp:116: rec[0].fPosScale = 0; // should never get used On ...
5 years, 1 month ago (2015-11-16 16:43:33 UTC) #21
reed1
https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): https://codereview.chromium.org/1436663003/diff/180001/src/effects/gradients/SkLinearGradient.cpp#newcode756 src/effects/gradients/SkLinearGradient.cpp:756: const Rec* r = find(fx, rec, fRecs.count()); On 2015/11/16 ...
5 years, 1 month ago (2015-11-16 17:31:24 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/260001
5 years, 1 month ago (2015-11-16 22:41:19 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/4188) Build-Ubuntu-Clang-x86_64-Debug-Trybot on ...
5 years, 1 month ago (2015-11-16 22:42:11 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/280001
5 years, 1 month ago (2015-11-17 15:33:21 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/4265) Build-Win-MSVC-x86_64-Debug-Trybot on ...
5 years, 1 month ago (2015-11-17 15:35:24 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/320001
5 years, 1 month ago (2015-11-17 16:00:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436663003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436663003/320001
5 years, 1 month ago (2015-11-17 16:10:33 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 16:12:22 UTC) #37
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://skia.googlesource.com/skia/+/f3182ebc72db2bf2e24119d5cea05f270473a491

Powered by Google App Engine
This is Rietveld 408576698