| Index: src/core/SkCanvas.cpp
|
| diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
|
| index 57cf850fa0d6dfbccbcc1560158b7b3049ebbba6..65002125a36d6f0e75a9a0ac0987b3938ff50fac 100644
|
| --- a/src/core/SkCanvas.cpp
|
| +++ b/src/core/SkCanvas.cpp
|
| @@ -1544,11 +1544,10 @@ void SkCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edg
|
| const SkClipStack::Element* element;
|
| while ((element = iter.next())) {
|
| SkClipStack::Element::Type type = element->getType();
|
| - if (type == SkClipStack::Element::kEmpty_Type) {
|
| - continue;
|
| - }
|
| SkPath operand;
|
| - element->asPath(&operand);
|
| + if (type != SkClipStack::Element::kEmpty_Type) {
|
| + element->asPath(&operand);
|
| + }
|
| SkRegion::Op elementOp = element->getOp();
|
| if (elementOp == SkRegion::kReplace_Op) {
|
| devPath = operand;
|
|
|