| Index: src/core/SkClipStack.cpp
|
| diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp
|
| index d5462876d1b77574d553f7fc4a8af275b3aa2492..515596a9693451f3a8bc05b932405ef20ac975b4 100644
|
| --- a/src/core/SkClipStack.cpp
|
| +++ b/src/core/SkClipStack.cpp
|
| @@ -112,8 +112,9 @@ void SkClipStack::Element::invertShapeFillType() {
|
| void SkClipStack::Element::initPath(int saveCount, const SkPath& path, SkRegion::Op op,
|
| bool doAA) {
|
| if (!path.isInverseFillType()) {
|
| - if (SkPath::kNone_PathAsRect != path.asRect()) {
|
| - this->initRect(saveCount, path.getBounds(), op, doAA);
|
| + SkRect r;
|
| + if (path.isRect(&r)) {
|
| + this->initRect(saveCount, r, op, doAA);
|
| return;
|
| }
|
| SkRect ovalRect;
|
|
|