aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-08-22 09:47:50 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-22 17:13:37 +0000
commit5929f5c0a5d6fd03f1a43b2aedc746043ab21d5c (patch)
treea03ae5303afcf572f7c90dca0d6a52172954e2ae /tools/flags
parent72859cbb149ba09f04a1e9f11ab17fd6b53978b3 (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.h2
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;