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

Issue 1043413002: experimental speedup some xfermodes with Sk4f (Closed)

Created:
5 years, 8 months ago by reed2
Modified:
5 years, 8 months ago
Reviewers:
mtklein, caryclark
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

experimental speedup some xfermodes with Sk4f Old: 7M 1 11.1ms 11.3ms 11.3ms 11.6ms 1% ▅▄▂▂▁▁▄▄█▇ 8888 Xfermode_Screen 7M 1 10.7ms 10.9ms 10.9ms 11.1ms 1% ▄▄▄▇▃▁█▄▂▅ 8888 Xfermode_Modulate 7M 1 7.86ms 8.03ms 8ms 8.18ms 1% █▇▅▁▃▃▂▃▆▅ 8888 Xfermode_Plus 7M 1 14.6ms 14.8ms 14.8ms 15.1ms 1% ▄█▆▅▄▁▁▆▄▆ 8888 Xfermode_Xor 7M 1 13ms 13.5ms 13.4ms 13.8ms 2% ▅▃▇▁█▂▃▅▃▅ 8888 Xfermode_DstATop 7M 1 13.1ms 13.4ms 13.3ms 13.6ms 1% ▄▁▁▆▅▄▇▆█▂ 8888 Xfermode_SrcATop New: 7M 1 6.99ms 7.19ms 7.4ms 8.98ms 8% ▁▂▁▃▂█▁▂▂▂ 8888 Xfermode_Screen 7M 1 5.27ms 5.46ms 5.46ms 5.89ms 3% ▁▁▅▁▂█▄▃▄▃ 8888 Xfermode_Modulate 7M 1 6.8ms 7.04ms 7.27ms 8.53ms 8% ▂▁█▁▁▂▂▂▂▇ 8888 Xfermode_Plus 7M 1 9ms 9.2ms 9.33ms 10.5ms 5% ▁█▃▁▂▁▁▁▅▂ 8888 Xfermode_Xor 7M 1 8.34ms 8.57ms 8.73ms 10.6ms 8% ▁▁▁▂▂▂▂▂▂█ 8888 Xfermode_DstATop 7M 1 8.38ms 8.62ms 8.91ms 10.3ms 8% ▁▃▁▂▇▂▁▂▁█ 8888 Xfermode_SrcATop Need to define SK_SUPPORT_LEGACY_SCALAR_XFERMODES in chrome to suppress change (see https://codereview.chromium.org/1054083002/) Committed: https://skia.googlesource.com/skia/+/f92ace90d89cc99b34162dda26be564e34ca80ef

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : remove redundant alpha reset #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : need Min checks for Screen and Xor (at least) to catch tiny imprecisions that were triggering inval… #

Patch Set 7 : propose landing disabled first, to reset benchmarks #

Total comments: 1

Patch Set 8 : add comment/todo to find short-cuts to avoid excessive calls to Sk4f::Min #

Patch Set 9 : remove additional clamps for screen and xor, using new relaxed asserts in SkPMFloat::get() #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -16 lines) Patch
M bench/XfermodeBench.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +201 lines, -15 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
reed2
5 years, 8 months ago (2015-04-01 12:33:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/40001
5 years, 8 months ago (2015-04-01 12:34:59 UTC) #4
mtklein
Woah, you're saying you're beating srcatop_modeproc_SSE2? Any results against srcatop_modeproc_neon? If not I can give ...
5 years, 8 months ago (2015-04-01 12:39:45 UTC) #5
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-01 13:08:47 UTC) #7
mtklein
https://codereview.chromium.org/1043413002/diff/40001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/1043413002/diff/40001/src/core/SkXfermode.cpp#newcode1196 src/core/SkXfermode.cpp:1196: // kSrcATop_Mode, //!< [Da, Sc * Da + (1 ...
5 years, 8 months ago (2015-04-01 19:33:55 UTC) #8
reed2
On 2015/04/01 19:33:55, mtklein wrote: > https://codereview.chromium.org/1043413002/diff/40001/src/core/SkXfermode.cpp > File src/core/SkXfermode.cpp (right): > > https://codereview.chromium.org/1043413002/diff/40001/src/core/SkXfermode.cpp#newcode1196 > ...
5 years, 8 months ago (2015-04-01 20:08:37 UTC) #9
reed2
yea, setting a component was very awkward to do (given our api)
5 years, 8 months ago (2015-04-01 20:09:03 UTC) #10
mtklein
On 2015/04/01 20:09:03, reed2 wrote: > yea, setting a component was very awkward to do ...
5 years, 8 months ago (2015-04-01 20:12:07 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/1043413002/80001
5 years, 8 months ago (2015-04-02 02:51:05 UTC) #13
reed2
I think https://codereview.chromium.org/1052083004/ will fix the assert (pre-existing bug in gm)
5 years, 8 months ago (2015-04-02 11:51:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/80001
5 years, 8 months ago (2015-04-02 17:08:11 UTC) #17
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-02 17:14:29 UTC) #19
mtklein
https://codereview.chromium.org/1043413002/diff/80001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/1043413002/diff/80001/src/core/SkXfermode.cpp#newcode1308 src/core/SkXfermode.cpp:1308: if (ProcType::kFoldCoverageIntoSrcAlpha && false) { ? Something about this ...
5 years, 8 months ago (2015-04-02 17:18:00 UTC) #20
reed2
https://codereview.chromium.org/1043413002/diff/80001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/1043413002/diff/80001/src/core/SkXfermode.cpp#newcode1308 src/core/SkXfermode.cpp:1308: if (ProcType::kFoldCoverageIntoSrcAlpha && false) { On 2015/04/02 17:18:00, mtklein ...
5 years, 8 months ago (2015-04-02 17:27:40 UTC) #21
reed2
ptal -- changed to land disabled for now, to reset benchmarks (had to scale those ...
5 years, 8 months ago (2015-04-02 17:28:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/120001
5 years, 8 months ago (2015-04-02 17:29:12 UTC) #24
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-04-02 17:29:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/120001
5 years, 8 months ago (2015-04-02 17:30:05 UTC) #28
mtklein
lgtm https://codereview.chromium.org/1043413002/diff/120001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/1043413002/diff/120001/src/core/SkXfermode.cpp#newcode1209 src/core/SkXfermode.cpp:1209: SkPMFloat pm = Sk4f::Min(value, pinnedAlpha); Guh. I take ...
5 years, 8 months ago (2015-04-02 17:37:15 UTC) #29
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-02 17:43:02 UTC) #31
reed2
On 2015/04/02 17:37:15, mtklein wrote: > lgtm > > https://codereview.chromium.org/1043413002/diff/120001/src/core/SkXfermode.cpp > File src/core/SkXfermode.cpp (right): > ...
5 years, 8 months ago (2015-04-02 17:57:55 UTC) #32
mtklein
On 2015/04/02 17:57:55, reed2 wrote: > On 2015/04/02 17:37:15, mtklein wrote: > > lgtm > ...
5 years, 8 months ago (2015-04-02 18:00:08 UTC) #33
reed2
On 2015/04/02 18:00:08, mtklein wrote: > On 2015/04/02 17:57:55, reed2 wrote: > > On 2015/04/02 ...
5 years, 8 months ago (2015-04-02 18:04:09 UTC) #34
mtklein
On 2015/04/02 18:04:09, reed2 wrote: > On 2015/04/02 18:00:08, mtklein wrote: > > On 2015/04/02 ...
5 years, 8 months ago (2015-04-02 18:07:41 UTC) #35
reed2
back to fasty wasty, ptal
5 years, 8 months ago (2015-04-02 18:36:26 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/180001
5 years, 8 months ago (2015-04-02 18:37:01 UTC) #39
mtklein
still lgtm https://codereview.chromium.org/1043413002/diff/180001/src/core/SkXfermode.cpp File src/core/SkXfermode.cpp (right): https://codereview.chromium.org/1043413002/diff/180001/src/core/SkXfermode.cpp#newcode1201 src/core/SkXfermode.cpp:1201: * Some modes that can, due to ...
5 years, 8 months ago (2015-04-02 18:40:40 UTC) #40
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-02 18:49:24 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043413002/200001
5 years, 8 months ago (2015-04-02 19:22:48 UTC) #45
commit-bot: I haz the power
5 years, 8 months ago (2015-04-02 19:46:30 UTC) #46
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://skia.googlesource.com/skia/+/f92ace90d89cc99b34162dda26be564e34ca80ef

Powered by Google App Engine
This is Rietveld 408576698