From 158c59524ce57a0e124cb02db2b72302f6200932 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 20 Nov 2012 23:01:35 +0000 Subject: [PATCH] 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 --- src/core/SkStroke.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.34.1