Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index ed8274dc5d3b4a9bf09d6241541620b1a11f9a4f..ecc05ac90097841479b2d7b56275deaefeed5094 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -820,12 +820,12 @@ bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveFlags flags, |
ir = clipBounds; |
} |
- fClipStack.clipDevRect(ir, op); |
- |
- // early exit if the clip is now empty |
- if (bounds_affects_clip(flags) && |
- !fMCRec->fRasterClip->op(ir, op)) { |
- return false; |
+ if (bounds_affects_clip(flags)) { |
+ fClipStack.clipDevRect(ir, op); |
+ // early exit if the clip is now empty |
+ if (!fMCRec->fRasterClip->op(ir, op)) { |
+ return false; |
+ } |
} |
if (intersection) { |