diff options
author | 2012-11-20 23:01:35 +0000 | |
---|---|---|
committer | 2012-11-20 23:01:35 +0000 | |
commit | 158c59524ce57a0e124cb02db2b72302f6200932 (patch) | |
tree | 1f7651e0b3db1fc558c4f2b361f1abeb20ac49de | |
parent | b9971cb6660fa85527a90bc42d7dd4dcb7db3355 (diff) |
add SK_IGNORE_NEW_STROKERECT guard
temp workaround for bug in isRect when I'm stroking and the rect isn't closed.
git-svn-id: http://skia.googlecode.com/svn/trunk@6520 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/core/SkStroke.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp index eec15bce51..fbf995bfaf 100644 --- a/src/core/SkStroke.cpp +++ b/src/core/SkStroke.cpp @@ -608,6 +608,7 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { } // If src is really a rect, call our specialty strokeRect() method +#ifndef SK_IGNORE_NEW_STROKERECT { SkRect rect; if (src.isRect(&rect)) { @@ -620,6 +621,7 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { return; } } +#endif #ifdef SK_SCALAR_IS_FIXED void (*proc)(SkPoint pts[], int count) = identity_proc; |