Chromium Code Reviews| Index: src/core/SkCanvas.cpp |
| diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
| index 2f7fcf4d4b5b5110ebf490cc33d14cc0cac15086..1c3dd7ea8dfd06fd0c44e5b82eddfdc4e5c492c4 100644 |
| --- a/src/core/SkCanvas.cpp |
| +++ b/src/core/SkCanvas.cpp |
| @@ -1500,6 +1500,7 @@ void SkCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edg |
| op = SkRegion::kReplace_Op; |
| } |
| + devPath.setIsVolatile(true); |
| rasterclip_path(&fMCRec->fRasterClip, this, devPath, op, edgeStyle); |
| } |
| @@ -1547,6 +1548,7 @@ void SkCanvas::validateClip() const { |
| default: { |
| SkPath path; |
| element->asPath(&path); |
| + path.setIsVolatile(true); |
|
bsalomon
2014/10/24 17:29:18
If this is coming out of the clipstack and copying
|
| rasterclip_path(&tmpClip, this, path, element->getOp(), element->isAA()); |
| break; |
| } |