aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkImage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 21523fd513..9aff8203c8 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -79,6 +79,7 @@ bool SkImage::scalePixels(const SkPixmap& dst, SkFilterQuality quality, CachingH
return false;
}
+#ifdef SK_SUPPORT_LEGACY_PREROLL
void SkImage::preroll(GrContext* ctx) const {
// For now, and to maintain parity w/ previous pixelref behavior, we just force the image
// to produce a cached raster-bitmap form, so that drawing to a raster canvas should be fast.
@@ -90,6 +91,7 @@ void SkImage::preroll(GrContext* ctx) const {
bm.unlockPixels();
}
}
+#endif
///////////////////////////////////////////////////////////////////////////////////////////////////