aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkCanvas.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 57b4f7b340..38135c6993 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -945,6 +945,9 @@ bool SkCanvas::getClipBounds(SkRect* bounds, EdgeType et) const {
SkMatrix inverse;
// if we can't invert the CTM, we can't return local clip bounds
if (!fMCRec->fMatrix->invert(&inverse)) {
+ if (bounds) {
+ bounds->setEmpty();
+ }
return false;
}