Fix assertion caused by change in 7117.
SkRect::intersect returns false if either rectange is empty. SkCanvas::quickReject returns true if an empty rectange is entirely contained within the clip bounds. git-svn-id: http://skia.googlecode.com/svn/trunk@7118 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
99452e6d15
commit
59a6a2b983
@ -274,7 +274,7 @@ bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!this->quickReject(outBounds)) {
|
||||
if (!outBounds.isEmpty() && !this->quickReject(outBounds)) {
|
||||
this->getTotalMatrix().mapRect(&outBounds);
|
||||
this->handleBBox(outBounds);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user