diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkClipStack.cpp | 3 | ||||
-rw-r--r-- | src/gpu/GrClipMaskManager.cpp | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp index 4227eeac68..f54d57fd0b 100644 --- a/src/core/SkClipStack.cpp +++ b/src/core/SkClipStack.cpp @@ -136,17 +136,14 @@ void SkClipStack::Element::asPath(SkPath* path) const { switch (fType) { case kEmpty_Type: path->reset(); - path->setIsVolatile(true); break; case kRect_Type: path->reset(); path->addRect(this->getRect()); - path->setIsVolatile(true); break; case kRRect_Type: path->reset(); path->addRRect(fRRect); - path->setIsVolatile(true); break; case kPath_Type: *path = *fPath.get(); diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index 4caa809206..b87788b286 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -448,6 +448,7 @@ bool GrClipMaskManager::drawElement(GrPipelineBuilder* pipelineBuilder, default: { SkPath path; element->asPath(&path); + path.setIsVolatile(true); if (path.isInverseFillType()) { path.toggleInverseFillType(); } |