diff options
author | Brian Osman <brianosman@google.com> | 2017-08-22 09:47:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-22 17:13:37 +0000 |
commit | 5929f5c0a5d6fd03f1a43b2aedc746043ab21d5c (patch) | |
tree | a03ae5303afcf572f7c90dca0d6a52172954e2ae /tools/flags | |
parent | 72859cbb149ba09f04a1e9f11ab17fd6b53978b3 (diff) |
Add "none" option for --pr, to force software path renderer
There was no way to get this behavior without triggering an error before.
Bug: skia:
Change-Id: Id9cb9090e47226dadad0032f06ec205dd2538dcc
Reviewed-on: https://skia-review.googlesource.com/37001
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/flags')
-rw-r--r-- | tools/flags/SkCommonFlagsPathRenderer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/flags/SkCommonFlagsPathRenderer.h b/tools/flags/SkCommonFlagsPathRenderer.h index ac293a1e79..0a53beb889 100644 --- a/tools/flags/SkCommonFlagsPathRenderer.h +++ b/tools/flags/SkCommonFlagsPathRenderer.h @@ -46,6 +46,8 @@ inline GrContextOptions::GpuPathRenderers get_named_pathrenderers_flags(const ch return GpuPathRenderers::kTessellating; } else if (!strcmp(name, "grdefault")) { return GpuPathRenderers::kDefault; + } else if (!strcmp(name, "none")) { + return GpuPathRenderers::kNone; } SK_ABORT(SkStringPrintf("error: unknown named path renderer \"%s\"\n", name).c_str()); return GpuPathRenderers::kNone; |