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

Issue 978823002: Run CodecSrc DM. (Closed)

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

Description

Run CodecSrc DM. Rather than making SkCodec an option instead of SkImageDecoder, create a separate CodecSrc. This allows us to compare the two. For both CodecSrc and ImageSrc, do not decode to a gpu backend. BUG=skia:3475 Committed: https://skia.googlesource.com/skia/+/9b77ddde08efe702256355a333cf31ade8f15bb0

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : Get things working, ignore non-drawing #

Patch Set 4 : Remove skipping alpha to 565, solved elsewhere #

Patch Set 5 : Rebase, plus cleanups #

Total comments: 9

Patch Set 6 : simplify #

Patch Set 7 : Don't report non png failures as failures. #

Patch Set 8 : Really don't fail for non png. #

Patch Set 9 : Remove unneeded include. #

Total comments: 11

Patch Set 10 : rebase #

Patch Set 11 : Respond to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -66 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -1 line 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +91 lines, -65 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
scroggo
Mike, any thoughts on the best way to integrate this into DM?
5 years, 9 months ago (2015-03-05 22:34:57 UTC) #2
mtklein
https://codereview.chromium.org/978823002/diff/80001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/978823002/diff/80001/dm/DM.cpp#newcode154 dm/DM.cpp:154: static const CodecSrc::SkipZeroes gSkips[] = { Why don't we ...
5 years, 9 months ago (2015-03-06 00:25:25 UTC) #3
scroggo
https://codereview.chromium.org/978823002/diff/80001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/978823002/diff/80001/dm/DM.cpp#newcode154 dm/DM.cpp:154: static const CodecSrc::SkipZeroes gSkips[] = { On 2015/03/06 00:25:25, ...
5 years, 9 months ago (2015-03-06 20:40:27 UTC) #4
scroggo
https://codereview.chromium.org/978823002/diff/80001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/978823002/diff/80001/dm/DMSrcSink.cpp#newcode47 dm/DMSrcSink.cpp:47: Error CodecSrc::draw(SkCanvas* canvas) const { On 2015/03/06 20:40:27, scroggo ...
5 years, 9 months ago (2015-03-06 20:43:45 UTC) #5
mtklein
> That could work. Although I'm still trying to wrap my head around making each ...
5 years, 9 months ago (2015-03-06 21:01:00 UTC) #6
mtklein
> My other thought is that the config you choose will then determine whether you ...
5 years, 9 months ago (2015-03-06 21:01:33 UTC) #7
scroggo
On 2015/03/06 21:01:00, mtklein wrote: > > That could work. Although I'm still trying to ...
5 years, 9 months ago (2015-03-06 21:30:12 UTC) #8
mtklein
On 2015/03/06 21:30:12, scroggo wrote: > On 2015/03/06 21:01:00, mtklein wrote: > > > That ...
5 years, 9 months ago (2015-03-06 22:29:45 UTC) #9
scroggo
On 2015/03/06 22:29:45, mtklein wrote: > On 2015/03/06 21:30:12, scroggo wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-11 13:44:00 UTC) #10
mtklein
> We'd need to change what the raster sink does. We cannot draw to an ...
5 years, 9 months ago (2015-03-11 22:44:34 UTC) #11
reed1
On 2015/03/11 22:44:34, mtklein wrote: > > We'd need to change what the raster sink ...
5 years, 9 months ago (2015-03-13 13:08:27 UTC) #12
scroggo
On 2015/03/06 22:29:45, mtklein wrote: > What if we go back to the straightforward idea ...
5 years, 9 months ago (2015-03-13 21:34:33 UTC) #13
mtklein
Some suggestions, but LGTM as it stands. https://codereview.chromium.org/978823002/diff/160001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/978823002/diff/160001/dm/DM.cpp#newcode173 dm/DM.cpp:173: push_src("codec", new ...
5 years, 9 months ago (2015-03-17 20:24:15 UTC) #14
mtklein
https://codereview.chromium.org/978823002/diff/160001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/978823002/diff/160001/dm/DMSrcSink.cpp#newcode16 dm/DMSrcSink.cpp:16: DEFINE_bool(codec, false, "Use SkCodec instead of SkImageDecoder"); Forgot: remove ...
5 years, 9 months ago (2015-03-17 20:24:39 UTC) #15
scroggo
https://codereview.chromium.org/978823002/diff/160001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/978823002/diff/160001/dm/DM.cpp#newcode173 dm/DM.cpp:173: push_src("codec", new CodecSrc(flag)); // Decode with SkCodec. On 2015/03/17 ...
5 years, 9 months ago (2015-03-19 12:57:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/978823002/200001
5 years, 9 months ago (2015-03-19 12:58:09 UTC) #19
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://skia.googlesource.com/skia/+/9b77ddde08efe702256355a333cf31ade8f15bb0
5 years, 9 months ago (2015-03-19 13:03:43 UTC) #20
reed1
5 years, 9 months ago (2015-03-19 16:50:42 UTC) #21
Message was sent while issue was closed.
On 2015/03/19 13:03:43, I haz the power (commit-bot) wrote:
> Committed patchset #11 (id:200001) as
> https://skia.googlesource.com/skia/+/9b77ddde08efe702256355a333cf31ade8f15bb0

We just need to update the dox (I will) : we can definitely rely on
allocPixels/tryAllocPixels etc. to returned locked pixels.

Powered by Google App Engine
This is Rietveld 408576698