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

Issue 1327433003: Various improvements to CodecSrc testing in dm (Closed)

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

Description

Various improvements to CodecSrc testing in dm *** Add CodecMode and ScaledCodecMode (in place of NormalMode), so now we test SkCodec's getPixels() and SkScaledCodec's getPixels() *** Don't attempt to test scanline and codec modes using the dimensions that were recommended for SkScaledCodec. *** Change tags so that each scale gets its own output folder. TODO: Make ScanlineMode and ScanlineSubsetMode support kOutOfOrder etc. I think this belongs with the gif CL - I don't want to add test modes that we don't run yet. BUG=skia:4202 BUG=skia:4238 Committed: https://skia.googlesource.com/skia/+/9e707a04127f35b199bb943b6f50ff4cf60506f8

Patch Set 1 #

Total comments: 14

Patch Set 2 : Use loops to improve readability #

Total comments: 5

Patch Set 3 : Use SkStrings for tag and options #

Patch Set 4 : Rebase #

Patch Set 5 : Use ImplicitString #

Total comments: 4

Patch Set 6 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -90 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 10 chunks +72 lines, -61 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 9 chunks +29 lines, -24 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (5 generated)
msarett
https://codereview.chromium.org/1327433003/diff/1/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1327433003/diff/1/dm/DMSrcSink.cpp#newcode211 dm/DMSrcSink.cpp:211: case kScanline_Subset_Mode: { I'm wondering if maybe we should ...
5 years, 3 months ago (2015-08-31 18:05:52 UTC) #2
scroggo
https://codereview.chromium.org/1327433003/diff/1/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/1/dm/DM.cpp#newcode209 dm/DM.cpp:209: SkString* str = new SkString(mode); This string is leaked. ...
5 years, 3 months ago (2015-08-31 19:35:24 UTC) #3
msarett
I think this looks a lot cleaner. https://codereview.chromium.org/1327433003/diff/1/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/1/dm/DM.cpp#newcode209 dm/DM.cpp:209: SkString* str ...
5 years, 3 months ago (2015-08-31 21:05:29 UTC) #4
scroggo
LGTM Adding mtklein@ for thoughts on DM. Mike, TaggedSrc does not delete its strings, since ...
5 years, 3 months ago (2015-09-01 13:11:44 UTC) #6
mtklein
On 2015/09/01 13:11:44, scroggo wrote: > LGTM > > Adding mtklein@ for thoughts on DM. ...
5 years, 3 months ago (2015-09-01 13:51:25 UTC) #7
msarett
"Everything as SkString or std::string sgtm." Should that be a part of this patch set?
5 years, 3 months ago (2015-09-01 14:05:14 UTC) #8
msarett
*Not patch set, I meant CL.
5 years, 3 months ago (2015-09-01 14:05:46 UTC) #9
mtklein
https://codereview.chromium.org/1327433003/diff/20001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/20001/dm/DM.cpp#newcode249 dm/DM.cpp:249: push_src("image", folderStr, src); Yes, folderStr will be deleted when ...
5 years, 3 months ago (2015-09-01 14:07:02 UTC) #10
scroggo
On 2015/09/01 14:05:14, msarett wrote: > "Everything as SkString or std::string sgtm." > > Should ...
5 years, 3 months ago (2015-09-01 14:10:05 UTC) #11
msarett
I'm still a bit confused on this as well. I had thought that the SkString ...
5 years, 3 months ago (2015-09-01 14:14:59 UTC) #12
mtklein
https://codereview.chromium.org/1327433003/diff/20001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/20001/dm/DM.cpp#newcode249 dm/DM.cpp:249: push_src("image", folderStr, src); On 2015/09/01 14:10:04, scroggo wrote: > ...
5 years, 3 months ago (2015-09-01 14:18:11 UTC) #13
msarett
Let me know about your preference between PS 2 and PS 3. Leon, I'll add ...
5 years, 3 months ago (2015-09-01 14:37:59 UTC) #14
msarett
Using ImplicitString makes things a little better.
5 years, 3 months ago (2015-09-01 17:01:44 UTC) #16
scroggo
LGTM https://codereview.chromium.org/1327433003/diff/100001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/100001/dm/DM.cpp#newcode248 dm/DM.cpp:248: push_src(SkString("image"), folder, src); It seems like if this ...
5 years, 3 months ago (2015-09-01 21:41:22 UTC) #17
msarett
https://codereview.chromium.org/1327433003/diff/100001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1327433003/diff/100001/dm/DM.cpp#newcode248 dm/DM.cpp:248: push_src(SkString("image"), folder, src); On 2015/09/01 21:41:22, scroggo wrote: > ...
5 years, 3 months ago (2015-09-01 21:51:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327433003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327433003/120001
5 years, 3 months ago (2015-09-01 21:51:53 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 21:58:00 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://skia.googlesource.com/skia/+/9e707a04127f35b199bb943b6f50ff4cf60506f8

Powered by Google App Engine
This is Rietveld 408576698