aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBigPicture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBigPicture.cpp')
-rw-r--r--src/core/SkBigPicture.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkBigPicture.cpp b/src/core/SkBigPicture.cpp
index 2a2e438fd6..1281b5bc9f 100644
--- a/src/core/SkBigPicture.cpp
+++ b/src/core/SkBigPicture.cpp
@@ -28,9 +28,7 @@ void SkBigPicture::playback(SkCanvas* canvas, AbortCallback* callback) const {
SkASSERT(canvas);
// If the query contains the whole picture, don't bother with the BBH.
- SkRect clipBounds = { 0, 0, 0, 0 };
- (void)canvas->getClipBounds(&clipBounds);
- const bool useBBH = !clipBounds.contains(this->cullRect());
+ const bool useBBH = !canvas->getLocalClipBounds().contains(this->cullRect());
SkRecordDraw(*fRecord,
canvas,