add gm test for drawing hairlines (and varying thin lines) in xfermodes
add --nopdf option to gm app
git-svn-id: http://skia.googlecode.com/svn/trunk@2281 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 4ac53e1..a8178c4 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -511,6 +511,7 @@
const char* diffPath = NULL; // if non-null, where we write our diffs (from compare)
const char* matchStr = NULL;
+ bool doPDF = true;
bool doReplay = true;
bool doSerialize = false;
const char* const commandName = argv[0];
@@ -533,6 +534,8 @@
}
} else if (strcmp(*argv, "--noreplay") == 0) {
doReplay = false;
+ } else if (strcmp(*argv, "--nopdf") == 0) {
+ doPDF = false;
} else if (strcmp(*argv, "--serialize") == 0) {
doSerialize = true;
} else if (strcmp(*argv, "--match") == 0) {
@@ -604,6 +607,10 @@
SkBitmap forwardRenderedBitmap;
for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) {
+ if ((kPDF_Backend == gRec[i].fBackend) && !doPDF) {
+ continue;
+ }
+
bool testSuccess = test_drawing(gm, gRec[i],
writePath, readPath, diffPath, gGrContext,
rt, &forwardRenderedBitmap);