diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-02 15:00:19 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-02 15:00:19 +0000 |
commit | f3bf18b2559efbcf835ab4f4f21e3e384f4e25f0 (patch) | |
tree | 96baa9bb53cee38fec484df8ec86867a26810d24 /src | |
parent | 480e21f239412d854f4adef22c88f655812db649 (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')
-rw-r--r-- | src/core/SkPath.cpp | 7 |
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) { |