зеркало из https://github.com/mozilla/moz-skia.git
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
This commit is contained in:
Родитель
8e910abcb7
Коммит
99452e6d15
|
@ -274,9 +274,7 @@ bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SkRect clip;
|
if (!this->quickReject(outBounds)) {
|
||||||
|
|
||||||
if (this->getClipBounds(&clip) && outBounds.intersect(clip)) {
|
|
||||||
this->getTotalMatrix().mapRect(&outBounds);
|
this->getTotalMatrix().mapRect(&outBounds);
|
||||||
this->handleBBox(outBounds);
|
this->handleBBox(outBounds);
|
||||||
return true;
|
return true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче