Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 2cc504fb55bc64c4ee1fc24d08430882dee82e16..7025e53eb197611ef286c622597daa21d8d674aa 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1417,13 +1417,6 @@ void SkCanvas::validateClip() const { |
const SkClipStack::Element* element; |
while ((element = iter.next()) != NULL) { |
switch (element->getType()) { |
- case SkClipStack::Element::kPath_Type: |
- clipPathHelper(this, |
- &tmpClip, |
- element->getPath(), |
- element->getOp(), |
- element->isAA()); |
- break; |
case SkClipStack::Element::kRect_Type: |
element->getRect().round(&ir); |
tmpClip.op(ir, element->getOp()); |
@@ -1431,6 +1424,16 @@ void SkCanvas::validateClip() const { |
case SkClipStack::Element::kEmpty_Type: |
tmpClip.setEmpty(); |
break; |
+ default: { |
+ SkPath path; |
+ element->asPath(&path); |
+ clipPathHelper(this, |
+ &tmpClip, |
+ path, |
+ element->getOp(), |
+ element->isAA()); |
+ break; |
+ } |
} |
} |