aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPath.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-02 15:00:19 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-02 15:00:19 +0000
commitf3bf18b2559efbcf835ab4f4f21e3e384f4e25f0 (patch)
tree96baa9bb53cee38fec484df8ec86867a26810d24 /src/core/SkPath.cpp
parent480e21f239412d854f4adef22c88f655812db649 (diff)
Don't change convexity status of a path after a moveTo
Review URL: http://codereview.appspot.com/5581048/ git-svn-id: http://skia.googlecode.com/svn/trunk@3127 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r--src/core/SkPath.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 322bd1785d..b37342f3c9 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -407,6 +407,11 @@ void SkPath::setConvexity(Convexity c) {
fConvexity = kUnknown_Convexity; \
} while (0)
+#define DIRTY_AFTER_EDIT_NO_CONVEXITY_CHANGE \
+ do { \
+ fBoundsIsDirty = true; \
+ } while (0)
+
void SkPath::incReserve(U16CPU inc) {
SkDEBUGCODE(this->validate();)
@@ -430,7 +435,7 @@ void SkPath::moveTo(SkScalar x, SkScalar y) {
pt->set(x, y);
GEN_ID_INC;
- DIRTY_AFTER_EDIT;
+ DIRTY_AFTER_EDIT_NO_CONVEXITY_CHANGE;
}
void SkPath::rMoveTo(SkScalar x, SkScalar y) {