Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index e99899e191bbf2e4ff8afa48fbde6d64a8bacd3c..81aa91ca71f0bf7a118f87f94384851b156e4d43 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -14,20 +14,11 @@ |
SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const SkRect& rect) { |
SkASSERT(s); |
-#ifdef SK_CROP_RECT_IS_INT |
- SkIRect cropRect; |
- if (rect.width() == 0 || rect.height() == 0) { |
- cropRect = SkIRect::MakeLargest(); |
- } else { |
- rect.roundOut(&cropRect); |
- } |
-#else |
uint32_t flags = CropRect::kHasAll_CropEdge; |
if (rect.width() == 0 || rect.height() == 0) { |
flags = 0x0; |
} |
CropRect cropRect(rect, flags); |
-#endif |
return SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect)); |
} |