allow simple

BUG=skia:

Review URL: https://codereview.chromium.org/824753006
This commit is contained in:
mtklein 2015-01-13 10:51:36 -08:00 committed by Commit bot
parent 74668a8e81
commit 963b832833

View File

@ -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;