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

Issue 1996993003: Finish supporting decoding opaque to non-opaque (Closed)

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

Description

Finish supporting decoding opaque to non-opaque When decoding to 565 or Gray, allow the client to incorrectly ask for premul. When checking whether it's possible to decode to 565, return whether the source is opaque. In DM, allow decoding to 565 or Gray, even if the client also asked for premul. This fixes a bug introduced in crrev.com/1999593003 when we stopped ever requesting Opaque, resulting in us not testing 565 or Gray. BUG=skia:4616 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=1996993003 Committed: https://skia.googlesource.com/skia/+/ba5848953e00685f9a57343aef94372c5803130a

Patch Set 1 #

Patch Set 2 : Fix opacity problems. #

Patch Set 3 : Add tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -24 lines) Patch
M dm/DMSrcSink.cpp View 1 5 chunks +8 lines, -10 lines 4 comments Download
M src/codec/SkCodecPriv.h View 1 1 chunk +1 line, -6 lines 0 comments Download
M src/codec/SkWbmpCodec.cpp View 1 3 chunks +4 lines, -5 lines 0 comments Download
M tests/CodecTest.cpp View 1 2 1 chunk +43 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 25 (8 generated)
scroggo
4 years, 7 months ago (2016-05-20 18:52:42 UTC) #4
msarett
I think you've hit on something bigger than this... For all of our codecs, I ...
4 years, 7 months ago (2016-05-20 18:58:01 UTC) #5
scroggo
On 2016/05/20 18:58:01, msarett wrote: > I think you've hit on something bigger than this... ...
4 years, 7 months ago (2016-05-20 18:59:13 UTC) #6
scroggo
On 2016/05/20 18:58:01, msarett wrote: > I think you've hit on something bigger than this... ...
4 years, 7 months ago (2016-05-20 19:29:15 UTC) #7
msarett
On 2016/05/20 19:29:15, scroggo wrote: > On 2016/05/20 18:58:01, msarett wrote: > > I think ...
4 years, 7 months ago (2016-05-20 19:37:41 UTC) #8
scroggo
Alright, this will revive back our testing to 565, and I added tests that 565 ...
4 years, 7 months ago (2016-05-20 20:22:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996993003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996993003/40001
4 years, 7 months ago (2016-05-20 20:39:22 UTC) #12
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 7 months ago (2016-05-20 20:39:23 UTC) #13
msarett
On 2016/05/20 20:22:04, scroggo wrote: > Alright, this will revive back our testing to 565, ...
4 years, 7 months ago (2016-05-20 20:43:58 UTC) #14
scroggo
On 2016/05/20 20:43:58, msarett wrote: > On 2016/05/20 20:22:04, scroggo wrote: > > Alright, this ...
4 years, 7 months ago (2016-05-20 20:50:03 UTC) #15
msarett
Ahhh ok I understand now. I think it would be a little more clear if ...
4 years, 7 months ago (2016-05-20 20:52:22 UTC) #16
msarett
On 2016/05/20 20:52:22, msarett wrote: > Ahhh ok I understand now. I think it would ...
4 years, 7 months ago (2016-05-20 20:53:21 UTC) #17
scroggo
https://codereview.chromium.org/1996993003/diff/40001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1996993003/diff/40001/dm/DMSrcSink.cpp#newcode327 dm/DMSrcSink.cpp:327: kOpaque_SkAlphaType != decodeInfo->alphaType()) { On 2016/05/20 20:52:22, msarett wrote: ...
4 years, 7 months ago (2016-05-20 20:55:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996993003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996993003/40001
4 years, 7 months ago (2016-05-20 20:55:19 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/ba5848953e00685f9a57343aef94372c5803130a
4 years, 7 months ago (2016-05-20 20:56:19 UTC) #23
msarett
On 2016/05/20 20:56:19, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as ...
4 years, 7 months ago (2016-05-20 21:00:12 UTC) #24
scroggo
4 years, 7 months ago (2016-05-20 21:12:09 UTC) #25
Message was sent while issue was closed.
On 2016/05/20 21:00:12, msarett wrote:
> On 2016/05/20 20:56:19, commit-bot: I haz the power wrote:
> > Committed patchset #3 (id:40001) as
> >
https://skia.googlesource.com/skia/+/ba5848953e00685f9a57343aef94372c5803130a
> 
> Well we only create kGrayAlways tests when the codec is kGray (which means it
> will always also be opaque).

Fair enough. Removing in https://codereview.chromium.org/2002723002

> 
> But yeah, you're right for 565.  Maybe there's another potential speed-up for
DM
> if we can figure out how to not create 565 CodecSrcs for non-opaque images.

I don't think so. Because we create a Src, and 565 describes the Sink.

Powered by Google App Engine
This is Rietveld 408576698