Index: src/image/SkImagePriv.cpp |
diff --git a/src/image/SkImagePriv.cpp b/src/image/SkImagePriv.cpp |
index 3ea61d519b7db89ac864c6eda30923434f95cd5c..f5b785877c7374f427b11c8a80e439195fa9462c 100644 |
--- a/src/image/SkImagePriv.cpp |
+++ b/src/image/SkImagePriv.cpp |
@@ -9,6 +9,7 @@ |
#include "SkCanvas.h" |
#include "SkPicture.h" |
+#ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG |
SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType colorType) { |
switch (colorType) { |
case kAlpha_8_SkColorType: |
@@ -45,6 +46,7 @@ SkColorType SkBitmapConfigToColorType(SkBitmap::Config config) { |
SkASSERT((unsigned)config < SK_ARRAY_COUNT(gCT)); |
return gCT[config]; |
} |
+#endif |
SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { |
const SkImageInfo info = bm.info(); |