aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2016-01-12 12:12:56 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-12 12:12:56 -0800
commit8d30dae5a0beab5015620929ba29949e2ccba903 (patch)
treece601af0c9b257f62c291c2743b9936aea28a894
parenteeebfff54877b24151570c4f02b2299e3f9ef967 (diff)
Remove #ifdef SK_DISABLE_TILE_IMAGE_FILTER_OPTIMIZATION.
-rw-r--r--src/effects/SkTileImageFilter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp
index 844895c6d8..6da572b3b8 100644
--- a/src/effects/SkTileImageFilter.cpp
+++ b/src/effects/SkTileImageFilter.cpp
@@ -46,12 +46,10 @@ bool SkTileImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src,
SkRect dstRect;
ctx.ctm().mapRect(&dstRect, fDstRect);
-#ifndef SK_DISABLE_TILE_IMAGE_FILTER_DEST_OPTIMIZATION
if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) {
offset->fX = offset->fY = 0;
return true;
}
-#endif
const SkIRect dstIRect = dstRect.roundOut();
int w = dstIRect.width();
int h = dstIRect.height();