make --replay be the default. Now --noreplay will disable testing through a picture
git-svn-id: http://skia.googlecode.com/svn/trunk@1437 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 6267fd4..ea205e3 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -441,7 +441,7 @@
const char* readPath = NULL; // if non-null, were we read from to compare
const char* diffPath = NULL; // if non-null, where we write our diffs (from compare)
- bool doReplay = false;
+ bool doReplay = true;
bool doSerialize = false;
const char* const commandName = argv[0];
char* const* stop = argv + argc;
@@ -461,8 +461,8 @@
if (argv < stop && **argv) {
diffPath = *argv;
}
- } else if (strcmp(*argv, "--replay") == 0) {
- doReplay = true;
+ } else if (strcmp(*argv, "--noreplay") == 0) {
+ doReplay = false;
} else if (strcmp(*argv, "--serialize") == 0) {
doSerialize = true;
} else {