aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gmmain.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-19 19:01:38 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-19 19:01:38 +0000
commitab9739777cc84bf6c7e86372ade87a4ec468d1e6 (patch)
tree12635ed68647524420407830fd8110e5ac9de4f5 /gm/gmmain.cpp
parent3ad3d44f15d81189b68fb5cc2f9463f07ffbdf9b (diff)
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
Diffstat (limited to 'gm/gmmain.cpp')
-rw-r--r--gm/gmmain.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 4ac53e1762..a8178c40c2 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -511,6 +511,7 @@ int main(int argc, char * const argv[]) {
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 @@ int main(int argc, char * const argv[]) {
}
} 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 @@ int main(int argc, char * const argv[]) {
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);