aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags/SkCommonFlagsGpu.h
diff options
context:
space:
mode:
authorGravatar Bryce Thomas <bryct@amazon.com>2018-03-02 13:54:21 -0800
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-02 22:20:19 +0000
commit95a7b76a44edd2f25423a4d395df553b80fe06d7 (patch)
tree6a5e66c6b2026e985248f092d928b39c19f677e1 /tools/flags/SkCommonFlagsGpu.h
parent419abf335af36cc9928019bbd9c075944ae59a0a (diff)
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>
Diffstat (limited to 'tools/flags/SkCommonFlagsGpu.h')
0 files changed, 0 insertions, 0 deletions