aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-04-03 08:18:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-03 12:49:22 +0000
commit1110da15d46482c35215362904160e198bb0118c (patch)
treea16912642c108a5a288be7a576715d9618702305 /src/core
parentfd88fe4d57c7ecde652cb8ae07dfe6f47bd13b78 (diff)
Fix non-GPU release bots
TBR=bsalomon@google.com Change-Id: I8b0a6ff0ca7674c94bfbc739d313cfac5a16596f Reviewed-on: https://skia-review.googlesource.com/118100 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkSpecialImage.cpp3
1 files changed, 2 insertions, 1 deletions
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<SkImage> 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> SkSpecialImage::MakeFromImage(const SkIRect& subset,
sk_sp<SkImage> image,