From 99452e6d15f4e3c01a4a20c3bf50ff698e62f261 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Thu, 10 Jan 2013 16:31:09 +0000 Subject: [PATCH] Properly reject clipped out draws in BBox pictures. https://codereview.appspot.com/7057065/ git-svn-id: http://skia.googlecode.com/svn/trunk@7117 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkBBoxRecord.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp index 1ca25616b1..78559a4a65 100644 --- a/src/core/SkBBoxRecord.cpp +++ b/src/core/SkBBoxRecord.cpp @@ -274,9 +274,7 @@ bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) { } } - SkRect clip; - - if (this->getClipBounds(&clip) && outBounds.intersect(clip)) { + if (!this->quickReject(outBounds)) { this->getTotalMatrix().mapRect(&outBounds); this->handleBBox(outBounds); return true;