diff options
author | senorblanco <senorblanco@chromium.org> | 2016-01-21 06:49:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-21 06:49:15 -0800 |
commit | d247e5862ef9f7130f36ba91aae43a09659eade3 (patch) | |
tree | 2823072550be9032160ce7bab9c99cfea1dfc56a /src/core/SkCanvas.cpp | |
parent | b0d25466be6106a0084a4d76c6f79efe389ba820 (diff) |
Remove SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS (now unused).
BUG=skia:3194
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1616503002
Review URL: https://codereview.chromium.org/1616503002
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index e577b21932..cd7c6f8a14 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1071,25 +1071,11 @@ bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveLayerFlags saveLayerFlag const SkMatrix& ctm = fMCRec->fMatrix; // this->getTotalMatrix() -// This is a temporary hack, until individual filters can do their own -// bloating, when this will be removed. -#ifdef SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS - SkRect storage; -#endif if (imageFilter) { imageFilter->filterBounds(clipBounds, ctm, &clipBounds); -#ifdef SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS - if (bounds && imageFilter->canComputeFastBounds()) { - imageFilter->computeFastBounds(*bounds, &storage); - bounds = &storage; - } else { - bounds = nullptr; - } -#else if (bounds && !imageFilter->canComputeFastBounds()) { bounds = nullptr; } -#endif } SkIRect ir; if (bounds) { @@ -1433,11 +1419,7 @@ void SkCanvas::internalDrawDevice(SkBaseDevice* srcDev, int x, int y, const SkBitmap& src = srcDev->accessBitmap(false); SkMatrix matrix = *iter.fMatrix; matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); -#ifdef SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS - SkIRect clipBounds = SkIRect::MakeWH(srcDev->width(), srcDev->height()); -#else SkIRect clipBounds = iter.fClip->getBounds().makeOffset(-pos.x(), -pos.y()); -#endif SkAutoTUnref<SkImageFilter::Cache> cache(dstDev->getImageFilterCache()); SkImageFilter::Context ctx(matrix, clipBounds, cache.get()); if (filter->filterImage(&proxy, src, ctx, &dst, &offset)) { |