Index: src/core/SkClipStack.cpp |
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp |
index cf2e71e671ae727f7b27c00f289631d92020885e..d5462876d1b77574d553f7fc4a8af275b3aa2492 100644 |
--- a/src/core/SkClipStack.cpp |
+++ b/src/core/SkClipStack.cpp |
@@ -125,6 +125,7 @@ void SkClipStack::Element::initPath(int saveCount, const SkPath& path, SkRegion: |
} |
} |
fPath.set(path); |
+ fPath.get()->setIsVolatile(true); |
fType = kPath_Type; |
this->initCommon(saveCount, op, doAA); |
} |
@@ -146,6 +147,7 @@ void SkClipStack::Element::asPath(SkPath* path) const { |
*path = *fPath.get(); |
break; |
} |
+ path->setIsVolatile(true); |
} |
void SkClipStack::Element::setEmpty() { |