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
This commit is contained in:
parent
480e21f239
commit
f3bf18b255
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user