зеркало из https://github.com/mozilla/moz-skia.git
Hamfisted "fix" for pinterest blur crash
https://codereview.chromium.org/23819014/ git-svn-id: http://skia.googlecode.com/svn/trunk@11057 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
b8bd6cbbcd
Коммит
112a23e0fa
|
@ -292,7 +292,9 @@ SkBlurMaskFilterImpl::filterRectsToNine(const SkRect rects[], int count,
|
|||
}
|
||||
|
||||
smallR[0].set(rects[0].left(), rects[0].top(), rects[0].right() - dx, rects[0].bottom() - dy);
|
||||
SkASSERT(!smallR[0].isEmpty());
|
||||
if (smallR[0].width() < 2 || smallR[0].height() < 2) {
|
||||
return kUnimplemented_FilterReturn;
|
||||
}
|
||||
if (2 == count) {
|
||||
smallR[1].set(rects[1].left(), rects[1].top(),
|
||||
rects[1].right() - dx, rects[1].bottom() - dy);
|
||||
|
|
Загрузка…
Ссылка в новой задаче