diff options
author | 2018-04-03 08:18:13 -0400 | |
---|---|---|
committer | 2018-04-03 12:49:22 +0000 | |
commit | 1110da15d46482c35215362904160e198bb0118c (patch) | |
tree | a16912642c108a5a288be7a576715d9618702305 /src/core | |
parent | fd88fe4d57c7ecde652cb8ae07dfe6f47bd13b78 (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.cpp | 3 |
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, |