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

Issue 1059513002: Update DM to allow Src's to have optional options. (Closed)

Created:
5 years, 8 months ago by djsollen
Modified:
5 years, 8 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

Update DM to allow Src's to have optional options. Committed: https://skia.googlesource.com/skia/+/54416de52381ac11dd755100a8025debf595873a

Patch Set 1 #

Total comments: 5

Patch Set 2 : better srcOption handling #

Patch Set 3 : accept command line input #

Total comments: 4

Patch Set 4 : remove srcOptions cmdline flag #

Patch Set 5 : rebase #

Patch Set 6 : blacklist bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -104 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 17 chunks +67 lines, -45 lines 0 comments Download
M dm/DMJsonWriter.h View 1 chunk +1 line, -0 lines 0 comments Download
M dm/DMJsonWriter.cpp View 1 2 chunks +12 lines, -10 lines 0 comments Download
M tools/dm_flags.json View 1 2 3 4 8 chunks +208 lines, -20 lines 0 comments Download
M tools/dm_flags.py View 1 2 3 4 1 chunk +30 lines, -29 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
djsollen
5 years, 8 months ago (2015-04-02 17:23:46 UTC) #2
djsollen
thoughts? https://codereview.chromium.org/1059513002/diff/1/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1059513002/diff/1/dm/DM.cpp#newcode138 dm/DM.cpp:138: const char* options; I'm thinking of storing an ...
5 years, 8 months ago (2015-04-02 17:25:07 UTC) #3
mtklein
Let's also update dm_flags.py in this CL so we don't get confused. Lots of lines ...
5 years, 8 months ago (2015-04-02 17:48:09 UTC) #4
mtklein
https://codereview.chromium.org/1059513002/diff/1/dm/DMJsonWriter.cpp File dm/DMJsonWriter.cpp (right): https://codereview.chromium.org/1059513002/diff/1/dm/DMJsonWriter.cpp#newcode58 dm/DMJsonWriter.cpp:58: result["options"]["source_options"] = gBitmapResults[i].sourceOptions.c_str(); This has to be part of ...
5 years, 8 months ago (2015-04-02 17:51:38 UTC) #5
djsollen
comments addressed, but it still feels a little dirty to expose an options field that ...
5 years, 8 months ago (2015-04-02 20:03:23 UTC) #6
mtklein
Better run $ python tools/dm_flags.py test to see if this makes the command lines we ...
5 years, 8 months ago (2015-04-02 20:11:59 UTC) #7
djsollen
https://codereview.chromium.org/1059513002/diff/40001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1059513002/diff/40001/dm/DM.cpp#newcode29 dm/DM.cpp:29: DEFINE_string(srcOptions, "decode subset codec scanline", On 2015/04/02 20:11:58, mtklein ...
5 years, 8 months ago (2015-04-02 20:24:15 UTC) #8
mtklein
lgtm
5 years, 8 months ago (2015-04-02 20:38:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1059513002/60001
5 years, 8 months ago (2015-04-02 20:39:03 UTC) #11
commit-bot: I haz the power
Failed to apply patch for tools/dm_flags.py: While running git apply --index -3 -p1; error: patch ...
5 years, 8 months ago (2015-04-02 20:39:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1059513002/80001
5 years, 8 months ago (2015-04-03 12:25:33 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/137)
5 years, 8 months ago (2015-04-03 12:33:08 UTC) #18
djsollen
5 years, 8 months ago (2015-04-03 13:10:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1059513002/100001
5 years, 8 months ago (2015-04-03 14:18:49 UTC) #23
scroggo
On 2015/04/03 14:18:49, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 8 months ago (2015-04-03 14:23:14 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/54416de52381ac11dd755100a8025debf595873a
5 years, 8 months ago (2015-04-03 14:24:53 UTC) #25
jcgregorio
On 2015/04/03 at 14:24:53, commit-bot wrote: > Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/54416de52381ac11dd755100a8025debf595873a source_options should ...
5 years, 8 months ago (2015-04-05 14:29:31 UTC) #26
mtklein
On 2015/04/05 14:29:31, jcgregorio wrote: > On 2015/04/03 at 14:24:53, commit-bot wrote: > > Committed ...
5 years, 8 months ago (2015-04-06 12:17:56 UTC) #27
jcgregorio
On 2015/04/06 at 12:17:56, mtklein wrote: > On 2015/04/05 14:29:31, jcgregorio wrote: > > On ...
5 years, 8 months ago (2015-04-06 12:48:07 UTC) #28
mtklein
On 2015/04/06 12:48:07, jcgregorio wrote: > On 2015/04/06 at 12:17:56, mtklein wrote: > > On ...
5 years, 8 months ago (2015-04-06 12:53:14 UTC) #29
mtklein
> Right... that file does not contain any image config results. Err, sorry, was looking ...
5 years, 8 months ago (2015-04-06 12:54:51 UTC) #30
mtklein
What do you think about not putting in in the file at all if empty?
5 years, 8 months ago (2015-04-06 12:55:55 UTC) #31
jcgregorio
On 2015/04/06 at 12:55:55, mtklein wrote: > What do you think about not putting in ...
5 years, 8 months ago (2015-04-06 13:07:07 UTC) #32
mtklein
On 2015/04/06 13:07:07, jcgregorio wrote: > On 2015/04/06 at 12:55:55, mtklein wrote: > > What ...
5 years, 8 months ago (2015-04-06 13:12:22 UTC) #33
jcgregorio
On 2015/04/06 at 13:12:22, mtklein wrote: > On 2015/04/06 13:07:07, jcgregorio wrote: > > On ...
5 years, 8 months ago (2015-04-06 13:17:06 UTC) #34
jcgregorio
5 years, 8 months ago (2015-04-06 13:21:47 UTC) #35
Message was sent while issue was closed.
On 2015/04/06 at 13:17:06, jcgregorio wrote:
> On 2015/04/06 at 13:12:22, mtklein wrote:
> > On 2015/04/06 13:07:07, jcgregorio wrote:
> > > On 2015/04/06 at 12:55:55, mtklein wrote:
> > > > What do you think about not putting in in the file at all if empty?
> > > 
> > > That's what we normally do with things in "options", but source_options is
part
> > > of the key.
> > > 
> > > I actually found this issue because keys for these traces look weird, for
> > > example:
> > > 
> > >   Arm7:GCC:8888:Debug:CPU:NEON:Daisy:aarectmodes:ChromeOS::gm
> > > 
> > > Note the "::gm", the source_options goes between those last two colons.
> > 
> > Not all things have to have the same shape key, right?  Can't we leave out
the entire `"source_options": "",` pair when source_options don't apply?
> 
> No. 
> 
> Simply pick a word for the value of source_options when no options are set.

OK, just talked to Derek, and learned that source_options only appears for
things in the image corpus? If that's correct then yes, just drop source_options
from the JSON if it is the empty string.

Powered by Google App Engine
This is Rietveld 408576698