diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp index 85a8d46bd7..be9f530396 100644 --- a/src/core/SkSpecialImage.cpp +++ b/src/core/SkSpecialImage.cpp @@ -168,7 +168,7 @@ sk_sp SkSpecialImage::asImage(const SkIRect* subset) const { return as_SIB(this)->onAsImage(subset); } - +#if defined(SK_DEBUG) || SK_SUPPORT_GPU static bool rect_fits(const SkIRect& rect, int width, int height) { if (0 == width && 0 == height) { SkASSERT(0 == rect.fLeft && 0 == rect.fRight && 0 == rect.fTop && 0 == rect.fBottom); @@ -180,6 +180,7 @@ static bool rect_fits(const SkIRect& rect, int width, int height) { rect.fTop >= 0 && rect.fTop < height && rect.fTop < rect.fBottom && rect.fBottom >= 0 && rect.fBottom <= height; } +#endif sk_sp SkSpecialImage::MakeFromImage(const SkIRect& subset, sk_sp image,