Index: src/codec/SkAndroidCodec.cpp |
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp |
index 6db0991c0d6ca7e611aa7e763ce09564355f766b..db365642327cc1041f1dbda911ed2d87c9c57da1 100644 |
--- a/src/codec/SkAndroidCodec.cpp |
+++ b/src/codec/SkAndroidCodec.cpp |
@@ -29,20 +29,20 @@ SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader |
} |
switch (codec->getEncodedFormat()) { |
-#ifdef SK_CODEC_DECODES_PNG |
+#ifdef SK_HAS_PNG_LIBRARY |
case kPNG_SkEncodedFormat: |
case kICO_SkEncodedFormat: |
#endif |
-#ifdef SK_CODEC_DECODES_JPEG |
+#ifdef SK_HAS_JPEG_LIBRARY |
case kJPEG_SkEncodedFormat: |
#endif |
-#ifdef SK_CODEC_DECODES_GIF |
+#ifdef SK_HAS_GIF_LIBRARY |
case kGIF_SkEncodedFormat: |
#endif |
case kBMP_SkEncodedFormat: |
case kWBMP_SkEncodedFormat: |
return new SkSampledCodec(codec.release()); |
-#ifdef SK_CODEC_DECODES_WEBP |
+#ifdef SK_HAS_WEBP_LIBRARY |
case kWEBP_SkEncodedFormat: |
return new SkWebpAdapterCodec((SkWebpCodec*) codec.release()); |
#endif |