aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/Intersection/EdgeWalker_TestUtility.cpp
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-24 15:24:36 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-24 15:24:36 +0000
commit3350c3c68ab75cd08721da3a938b8d2b10096d70 (patch)
tree4fd61c976427b3b30ea53d1ae8dfe6725ca609c0 /experimental/Intersection/EdgeWalker_TestUtility.cpp
parente599ab74ac9aedfd20c89bc537440e615594dc4e (diff)
shape ops work in progress
this fixes quad/line intersection git-svn-id: http://skia.googlecode.com/svn/trunk@5277 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/EdgeWalker_TestUtility.cpp')
-rw-r--r--experimental/Intersection/EdgeWalker_TestUtility.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/experimental/Intersection/EdgeWalker_TestUtility.cpp b/experimental/Intersection/EdgeWalker_TestUtility.cpp
index 4129ab472b..aae7636fb1 100644
--- a/experimental/Intersection/EdgeWalker_TestUtility.cpp
+++ b/experimental/Intersection/EdgeWalker_TestUtility.cpp
@@ -130,10 +130,10 @@ static int pathsDrawTheSame(const SkPath& one, const SkPath& two,
if (!c) {
delete canvasPtr;
}
- if (errors2 >= 2 || errors > 96) {
+ if (errors2 >= 3 || errors > 96) {
SkDebugf("%s errors2=%d errors=%d\n", __FUNCTION__, errors2, errors);
}
- if (errors2 >= 3 || errors > 192) {
+ if (errors2 >= 4 || errors > 192) {
drawAsciiPaths(scaledOne, scaledTwo, true);
}
error2x2 = errors2;
@@ -199,7 +199,7 @@ int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap,
if (errors2x2 == 0) {
return 0;
}
- const int MAX_ERRORS = 4;
+ const int MAX_ERRORS = 5;
if (errors2x2 > MAX_ERRORS && gComparePathsAssert) {
SkDebugf("%s errors=%d\n", __FUNCTION__, errors);
showPath(one);