revert fuzzer fixes for canvas, need to investigate more
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1717943002 TBR= Review URL: https://codereview.chromium.org/1717943002
This commit is contained in:
parent
00bea4ad31
commit
d97f07dc43
@ -1072,14 +1072,11 @@ bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveLayerFlags saveLayerFlag
|
||||
if (!this->getClipDeviceBounds(&clipBounds)) {
|
||||
return false;
|
||||
}
|
||||
SkASSERT(!clipBounds.isEmpty());
|
||||
|
||||
const SkMatrix& ctm = fMCRec->fMatrix; // this->getTotalMatrix()
|
||||
|
||||
if (imageFilter) {
|
||||
if (!imageFilter->filterBounds(clipBounds, ctm, &clipBounds) || clipBounds.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
imageFilter->filterBounds(clipBounds, ctm, &clipBounds);
|
||||
if (bounds && !imageFilter->canComputeFastBounds()) {
|
||||
bounds = nullptr;
|
||||
}
|
||||
@ -1781,7 +1778,6 @@ bool SkCanvas::getClipDeviceBounds(SkIRect* bounds) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
SkASSERT(!clip.getBounds().isEmpty());
|
||||
if (bounds) {
|
||||
*bounds = clip.getBounds();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user