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

Issue 1653943002: unroll srcover_1 for blending a single color (Closed)

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

Description

unroll srcover_1 for blending a single color Before: curr/maxrss loops min median mean max stddev samples config bench 8/8 MB 1 1.59ms 1.82ms 1.89ms 2.59ms 14% ▁█▃▃▃▃▃▃▃▃ nonrendering xfer4f_srcover_1_alpha_linear 8/8 MB 1 3.25ms 4.25ms 4.16ms 5.87ms 21% ▁▅▂▁▁▄█▄▅▂ nonrendering xfer4f_srcover_1_alpha_srgb After: curr/maxrss loops min median mean max stddev samples config bench 8/8 MB 1 915µs 915µs 946µs 1.02ms 4% █▄▇▁▁▁▆▁▁▁ nonrendering xfer4f_srcover_1_alpha_linear 8/8 MB 1 2.69ms 3.08ms 3.03ms 3.63ms 10% ▁▃▂▁▁█▄▄▄▆ nonrendering xfer4f_srcover_1_alpha_srgb BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1653943002 Committed: https://skia.googlesource.com/skia/+/bf907e628fe245305d0f987aed8b8ecff8356374

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : remove unneeded templateness, speed up linear a bit more (avoid scaling to unit on dst) #

Total comments: 2

Patch Set 4 : separate src_1 functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -13 lines) Patch
M src/core/SkXfermode4f.cpp View 1 2 3 3 chunks +80 lines, -13 lines 0 comments Download

Messages

Total messages: 38 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653943002/20001
4 years, 10 months ago (2016-02-01 20:31:54 UTC) #4
reed1
4 years, 10 months ago (2016-02-01 20:32:02 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 20:43:25 UTC) #8
mtklein
good speedup? https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (right): https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp#newcode38 src/core/SkXfermode4f.cpp:38: template <DstType D> Sk4f linear_to_dst_255(const Sk4f& l4) ...
4 years, 10 months ago (2016-02-01 21:55:33 UTC) #9
mtklein
https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (right): https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp#newcode292 src/core/SkXfermode4f.cpp:292: } I'm also curious to see if this hoisting ...
4 years, 10 months ago (2016-02-01 21:58:45 UTC) #10
reed1
As I've tweaked the bench to make it more stable, I may land that separately ...
4 years, 10 months ago (2016-02-02 14:04:39 UTC) #11
mtklein
https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (right): https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp#newcode38 src/core/SkXfermode4f.cpp:38: template <DstType D> Sk4f linear_to_dst_255(const Sk4f& l4) { On ...
4 years, 10 months ago (2016-02-02 14:26:06 UTC) #12
reed1
https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (right): https://codereview.chromium.org/1653943002/diff/20001/src/core/SkXfermode4f.cpp#newcode38 src/core/SkXfermode4f.cpp:38: template <DstType D> Sk4f linear_to_dst_255(const Sk4f& l4) { On ...
4 years, 10 months ago (2016-02-02 14:45:58 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653943002/40001
4 years, 10 months ago (2016-02-02 17:56:38 UTC) #19
reed1
refactor linear -vs- srgb code more, removing (as noted by reviewer) one-side template helper, and ...
4 years, 10 months ago (2016-02-02 18:03:25 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-02 18:07:18 UTC) #22
mtklein
https://codereview.chromium.org/1653943002/diff/40001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (left): https://codereview.chromium.org/1653943002/diff/40001/src/core/SkXfermode4f.cpp#oldcode257 src/core/SkXfermode4f.cpp:257: template <DstType D> void srcover_1(const SkXfermode::PM4fState& state, uint32_t dst[], ...
4 years, 10 months ago (2016-02-02 18:10:08 UTC) #23
mtklein
https://codereview.chromium.org/1653943002/diff/40001/src/core/SkXfermode4f.cpp File src/core/SkXfermode4f.cpp (left): https://codereview.chromium.org/1653943002/diff/40001/src/core/SkXfermode4f.cpp#oldcode257 src/core/SkXfermode4f.cpp:257: template <DstType D> void srcover_1(const SkXfermode::PM4fState& state, uint32_t dst[], ...
4 years, 10 months ago (2016-02-02 18:10:46 UTC) #24
reed1
I agree the function is 1/2 split already, but the AA section is still shared, ...
4 years, 10 months ago (2016-02-02 18:16:32 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653943002/60001
4 years, 10 months ago (2016-02-02 18:39:44 UTC) #28
reed1
is this better?
4 years, 10 months ago (2016-02-02 18:40:14 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-02 18:52:54 UTC) #31
reed1
will land w/ previous review. separately writing tests for aa case, and I think there ...
4 years, 10 months ago (2016-02-02 18:59:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653943002/60001
4 years, 10 months ago (2016-02-02 19:00:00 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/bf907e628fe245305d0f987aed8b8ecff8356374
4 years, 10 months ago (2016-02-02 19:01:06 UTC) #37
mtklein
4 years, 10 months ago (2016-02-02 19:10:27 UTC) #38
Message was sent while issue was closed.
sounds good

Powered by Google App Engine
This is Rietveld 408576698