skia2/tools/flags
Bryce Thomas 95a7b76a44 dm: support printing specific page of mskp to SVG
Currently with dm, it's possible to convert an .mskp to a multi-page PDF as
follows:

    out/Release/dm --src mskp --mskps /tmp/filename.mskp -w /tmp \
    --config pdf --verbose

The SVG equivalent partially works, although only outputs the first page:

    out/Release/dm --src mskp --mskps /tmp/filename.mskp -w /tmp \
    --config svg --verbose

This CL adds support for passing extended options to SVG.  Specifically, the
'page' option , which now determines which page of the source mskp gets
converted to the SVG output.  The new syntax is as follows:

    out/Release/dm --src mskp --mskps /tmp/filename.mskp -w /tmp \
    --config svg[page=2] --verbose

The `[key=value]` syntax is the same extended options syntax currently used by
dm with --config gpu, e.g. `gpu[api=gl,color=8888]`.

BUG=skia:7601

Change-Id: I3523d79b1cdbbba9e80fd46501331877091bdead
Reviewed-on: https://skia-review.googlesource.com/105404
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2018-03-02 22:20:19 +00:00
..
SkCommandLineFlags.cpp remove need for command flags cast 2017-09-14 17:32:31 +00:00
SkCommandLineFlags.h Initial Lottie loader impl (Skotty) 2017-12-30 22:55:39 +00:00
SkCommonFlags.cpp Add threaded backend sink to DM. Fix a scheduler bug. 2018-02-25 16:36:24 +00:00
SkCommonFlags.h Add threaded backend sink to DM. Fix a scheduler bug. 2018-02-25 16:36:24 +00:00
SkCommonFlagsConfig.cpp dm: support printing specific page of mskp to SVG 2018-03-02 22:20:19 +00:00
SkCommonFlagsConfig.h dm: support printing specific page of mskp to SVG 2018-03-02 22:20:19 +00:00
SkCommonFlagsGpu.h Init executor in SetCtxOptionsFromCommonFlags 2017-12-20 17:03:34 +00:00