shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7637 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/AddTestOutput/main.cpp b/experimental/Intersection/AddTestOutput/main.cpp
index 95955ce..83b315d 100644
--- a/experimental/Intersection/AddTestOutput/main.cpp
+++ b/experimental/Intersection/AddTestOutput/main.cpp
@@ -26,6 +26,8 @@
char* opInsert = strstr(opData.begin(), marker);
if (!opInsert) {
SkDebugf("%s missing marker in %s\n", fun, outFileStr.c_str());
+ opStreamOut.write(opData.begin(), opLen);
+ opStreamOut.flush();
return false;
}
const char* opInsertEnd = opInsert + strlen(marker);
@@ -33,6 +35,8 @@
char* opInsert2 = strstr(opInsert, marker2);
if (!opInsert2) {
SkDebugf("%s missing marker second half in %s\n", fun, outFileStr.c_str());
+ opStreamOut.write(opData.begin(), opLen);
+ opStreamOut.flush();
return false;
}
opInsertEnd = opInsert2 + strlen(marker2);
@@ -98,10 +102,10 @@
return 0;
}
const char simplifyMarker[] =
- "#if 1 // set to 1 for multiple thread -- no debugging"
+ "#define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no debugging"
;
const char simplifyReplace[] =
- "#if 0 // set to 1 for multiple thread -- no debugging"
+ "#define FORCE_RELEASE 0 // set force release to 1 for multiple thread -- no debugging"
;
if (!replace(argv[0], dir, "Simplify.cpp", simplifyMarker, NULL, simplifyReplace,
sizeof(simplifyReplace) - 1)) {