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

Issue 1808963005: 4f linear gradient shader blitters (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

4f linear gradient shader blitters Add F16 specializations to support writing to half-float dests. Add color profile template arg across the board to support writing to sRGB dests. R=reed@google.com,mtklein@google.com,herb@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1808963005 Committed: https://skia.googlesource.com/skia/+/a928b288b3001eb34cc3c9caedbaac9a403b05ed

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : rename trunc_from_255 to quiet confused msvc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -100 lines) Patch
M src/core/SkPixmap.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/core/SkUtils.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkXfermodeU64.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/effects/gradients/Sk4fGradientBase.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M src/effects/gradients/Sk4fGradientBase.cpp View 1 2 5 chunks +12 lines, -13 lines 0 comments Download
M src/effects/gradients/Sk4fGradientPriv.h View 1 2 3 2 chunks +64 lines, -29 lines 0 comments Download
M src/effects/gradients/Sk4fLinearGradient.h View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M src/effects/gradients/Sk4fLinearGradient.cpp View 1 2 3 14 chunks +145 lines, -41 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
f(malita)
A hack to slap shader blitters on top of the current 4f linear impl. Since ...
4 years, 9 months ago (2016-03-17 22:04:29 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808963005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808963005/20001
4 years, 9 months ago (2016-03-17 22:04:43 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 22:27:38 UTC) #9
reed1
https://codereview.chromium.org/1808963005/diff/20001/src/effects/gradients/Sk4fGradientPriv.h File src/effects/gradients/Sk4fGradientPriv.h (right): https://codereview.chromium.org/1808963005/diff/20001/src/effects/gradients/Sk4fGradientPriv.h#newcode43 src/effects/gradients/Sk4fGradientPriv.h:43: inline void store<SkPM4f, kLinear_SkColorProfileType, false>(const Sk4f& c, SkPM4f* dst) ...
4 years, 9 months ago (2016-03-18 14:28:59 UTC) #10
f(malita)
https://codereview.chromium.org/1808963005/diff/20001/src/effects/gradients/Sk4fGradientPriv.h File src/effects/gradients/Sk4fGradientPriv.h (right): https://codereview.chromium.org/1808963005/diff/20001/src/effects/gradients/Sk4fGradientPriv.h#newcode43 src/effects/gradients/Sk4fGradientPriv.h:43: inline void store<SkPM4f, kLinear_SkColorProfileType, false>(const Sk4f& c, SkPM4f* dst) ...
4 years, 9 months ago (2016-03-18 16:54:11 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808963005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808963005/40001
4 years, 9 months ago (2016-03-18 16:54:19 UTC) #13
reed1
Any feel how this restructuring of your templates affects your speed in the shadeSpan4f case?
4 years, 9 months ago (2016-03-18 16:56:09 UTC) #14
reed1
lgtm https://codereview.chromium.org/1808963005/diff/40001/src/effects/gradients/Sk4fGradientPriv.h File src/effects/gradients/Sk4fGradientPriv.h (right): https://codereview.chromium.org/1808963005/diff/40001/src/effects/gradients/Sk4fGradientPriv.h#newcode45 src/effects/gradients/Sk4fGradientPriv.h:45: inline void store<SkPM4f, kLinear_SkColorProfileType, ApplyPremul::False> just a question: ...
4 years, 9 months ago (2016-03-18 16:58:05 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/7235)
4 years, 9 months ago (2016-03-18 16:58:09 UTC) #17
f(malita)
On 2016/03/18 16:56:09, reed1 wrote: > Any feel how this restructuring of your templates affects ...
4 years, 9 months ago (2016-03-18 17:03:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808963005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808963005/60001
4 years, 9 months ago (2016-03-18 17:10:37 UTC) #21
f(malita)
On 2016/03/18 17:03:34, f(malita) wrote: > On 2016/03/18 16:56:09, reed1 wrote: > > Any feel ...
4 years, 9 months ago (2016-03-18 17:14:42 UTC) #22
reed1
Sweet. Makes some sense, since the orig code also was paying for float->byte, and F16 ...
4 years, 9 months ago (2016-03-18 17:18:00 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 17:28:26 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/a928b288b3001eb34cc3c9caedbaac9a403b05ed

Powered by Google App Engine
This is Rietveld 408576698