Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 0359b57ca5edb5ca182db7a0ab9ad99d2012d82c..4fdd4aea8a4df2ff11167d60da1e635f7a3ec274 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1171,11 +1171,7 @@ void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, |
SkIPoint offset = SkIPoint::Make(0, 0); |
SkMatrix matrix(*draw.fMatrix); |
matrix.postTranslate(SkIntToScalar(-left), SkIntToScalar(-top)); |
-#ifdef SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS |
- SkIRect clipBounds = SkIRect::MakeWH(bitmap.width(), bitmap.height()); |
-#else |
SkIRect clipBounds = draw.fClip->getBounds().makeOffset(-left, -top); |
-#endif |
SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); |
// This cache is transient, and is freed (along with all its contained |
// textures) when it goes out of scope. |
@@ -1339,11 +1335,7 @@ void SkGpuDevice::drawDevice(const SkDraw& draw, SkBaseDevice* device, |
SkIPoint offset = SkIPoint::Make(0, 0); |
SkMatrix matrix(*draw.fMatrix); |
matrix.postTranslate(SkIntToScalar(-x), SkIntToScalar(-y)); |
-#ifdef SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS |
- SkIRect clipBounds = SkIRect::MakeWH(devTex->width(), devTex->height()); |
-#else |
SkIRect clipBounds = draw.fClip->getBounds().makeOffset(-x, -y); |
-#endif |
// This cache is transient, and is freed (along with all its contained |
// textures) when it goes out of scope. |
SkAutoTUnref<SkImageFilter::Cache> cache(getImageFilterCache()); |