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

Issue 1566653007: SkSwizzler: Factor skipping zeros out into a helper function. (Closed)

Created:
4 years, 11 months ago by mtklein_C
Modified:
4 years, 11 months ago
Reviewers:
msarett, scroggo
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkSwizzler: Factor skipping zeros out into a helper function. I figure something like this lets us not worry about it in the new opts. This skips only leading zeros per-scanline, not all zeros, but my bet is that leading zeros are all that matters: it's got to be rare that a scanline is both larger than 1024 pixels and has runs of 1024 transparent pixels in the middle. I bet the big bang for the buck comes from skipping full scanlines (or even multiple adjacent scanlines). BUG=skia:4767 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1566653007 Committed: https://skia.googlesource.com/skia/+/8604ca2d84cfa9527705c69d74a8449b532e0ee4

Patch Set 1 #

Total comments: 1

Patch Set 2 : split in two #

Patch Set 3 : back to 1 #

Patch Set 4 : rebase, back to PS 1 strategy with note #

Patch Set 5 : clearer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -43 lines) Patch
M src/codec/SkSwizzler.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 4 3 chunks +22 lines, -43 lines 0 comments Download

Messages

Total messages: 32 (9 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/1566653007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566653007/1
4 years, 11 months ago (2016-01-08 21:21:14 UTC) #3
mtklein_C
Seem sane? How do I best test / bench this?
4 years, 11 months ago (2016-01-08 21:21:40 UTC) #5
scroggo
On 2016/01/08 21:21:40, mtklein_C wrote: > Seem sane? Yes. LGTM. > How do I best ...
4 years, 11 months ago (2016-01-08 21:33:20 UTC) #6
mtklein
> https://codereview.chromium.org/1566653007/diff/1/src/codec/SkSwizzler.cpp#newcode474 > src/codec/SkSwizzler.cpp:474: while (dstWidth > 0 && *src32 == 0) { > FWIW, ...
4 years, 11 months ago (2016-01-08 21:41:34 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-08 21:42:41 UTC) #9
msarett
On 2016/01/08 21:41:34, mtklein wrote: > > > https://codereview.chromium.org/1566653007/diff/1/src/codec/SkSwizzler.cpp#newcode474 > > src/codec/SkSwizzler.cpp:474: while (dstWidth > ...
4 years, 11 months ago (2016-01-08 21:46:28 UTC) #10
mtklein
On 2016/01/08 21:46:28, msarett wrote: > On 2016/01/08 21:41:34, mtklein wrote: > > > > ...
4 years, 11 months ago (2016-01-08 21:53:47 UTC) #11
mtklein
On 2016/01/08 21:53:47, mtklein wrote: > On 2016/01/08 21:46:28, msarett wrote: > > On 2016/01/08 ...
4 years, 11 months ago (2016-01-08 22:01:31 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/1566653007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566653007/20001
4 years, 11 months ago (2016-01-08 22:04:20 UTC) #14
msarett
On 2016/01/08 22:01:31, mtklein wrote: > On 2016/01/08 21:53:47, mtklein wrote: > > On 2016/01/08 ...
4 years, 11 months ago (2016-01-08 22:05:15 UTC) #15
mtklein
On 2016/01/08 22:05:15, msarett wrote: > On 2016/01/08 22:01:31, mtklein wrote: > > On 2016/01/08 ...
4 years, 11 months ago (2016-01-08 22:14:50 UTC) #16
mtklein_C
PS3 puts things back to 1 function checking only alpha, applied to UPM and PM. ...
4 years, 11 months ago (2016-01-08 22:19:49 UTC) #17
msarett
I think this is a great change! "What are the effects of only skipping leading ...
4 years, 11 months ago (2016-01-08 22:22:18 UTC) #18
msarett
On 2016/01/08 22:19:49, mtklein_C wrote: > PS3 puts things back to 1 function checking only ...
4 years, 11 months ago (2016-01-08 22:24:00 UTC) #19
mtklein_C
On 2016/01/08 at 22:24:00, msarett wrote: > On 2016/01/08 22:19:49, mtklein_C wrote: > > PS3 ...
4 years, 11 months ago (2016-01-08 22:24:32 UTC) #20
scroggo
On 2016/01/08 22:22:18, msarett wrote: > I think this is a great change! > > ...
4 years, 11 months ago (2016-01-11 14:47:02 UTC) #21
msarett
On 2016/01/11 14:47:02, scroggo wrote: > On 2016/01/08 22:22:18, msarett wrote: > > I think ...
4 years, 11 months ago (2016-01-11 14:52:45 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/1566653007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566653007/80001
4 years, 11 months ago (2016-01-11 21:01:38 UTC) #24
mtklein_C
ok guys, ptal PS 5 is rebased and back to its original strategy: check all ...
4 years, 11 months ago (2016-01-11 21:04:45 UTC) #25
msarett
lgtm
4 years, 11 months ago (2016-01-11 21:07:08 UTC) #26
scroggo
On 2016/01/11 21:07:08, msarett wrote: > lgtm lgtm 2
4 years, 11 months ago (2016-01-11 21:12:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566653007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566653007/80001
4 years, 11 months ago (2016-01-11 21:13:21 UTC) #30
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 21:13:58 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/8604ca2d84cfa9527705c69d74a8449b532e0ee4

Powered by Google App Engine
This is Rietveld 408576698