diff options
author | mtklein <mtklein@chromium.org> | 2015-01-13 10:51:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-13 10:51:36 -0800 |
commit | 963b832833278be939819a2e507d531daa438587 (patch) | |
tree | 7b02546e30c73f48bad233838837554ceb62556a | |
parent | 74668a8e818fd891a08c4966cc5973b04c1ad992 (diff) |
allow simple
BUG=skia:
Review URL: https://codereview.chromium.org/824753006
-rw-r--r-- | tools/PictureRenderingFlags.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/PictureRenderingFlags.cpp b/tools/PictureRenderingFlags.cpp index 7424d50786..45f5891dd6 100644 --- a/tools/PictureRenderingFlags.cpp +++ b/tools/PictureRenderingFlags.cpp @@ -139,9 +139,10 @@ sk_tools::PictureRenderer* parseRenderer(SkString& error, PictureTool tool) { #endif } else if (0 == strcmp(mode, "rerecord") && kRender_PictureTool == tool) { renderer.reset(SkNEW_ARGS(sk_tools::RecordPictureRenderer, RENDERER_ARGS)); - // Allow 'mode' to be set to 'simple', but do not create a renderer, so we can - // ensure that pipe does not override a mode besides simple. The renderer will - // be created below. + } else if (0 == strcmp(mode, "simple")) { + // Allow 'mode' to be set to 'simple', but do not create a renderer, so we can + // ensure that pipe does not override a mode besides simple. The renderer will + // be created below. } else { error.printf("%s is not a valid mode for --mode\n", mode); return NULL; |