Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index 066d7a601ab662765d201759ecd47d2c8b14cee3..08e6d94f9e58eb717f363b9a50e70ffd624bc6f9 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -328,7 +328,9 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index) { |
canvas->restore(); |
} |
fMatrix = canvas->getTotalMatrix(); |
- fClip = canvas->getTotalClip().getBounds(); |
+ if (!canvas->getClipDeviceBounds(&fClip)) { |
+ fClip.setEmpty(); |
+ } |
fIndex = index; |
} |