Index: src/c/sk_surface.cpp |
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp |
index 59c810a56e31ad42a98f559eed9ec657c4993b05..b60596008f8abecd87dfaabc2f107ca37acc99d9 100644 |
--- a/src/c/sk_surface.cpp |
+++ b/src/c/sk_surface.cpp |
@@ -233,8 +233,11 @@ sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t* cinfo, const void* pi |
#include "SkDecodingImageGenerator.h" |
sk_image_t* sk_image_new_from_data(const sk_data_t* cdata) { |
- SkImageGenerator* gen = SkDecodingImageGenerator::Create(AsData(cdata), |
- SkDecodingImageGenerator::Options()); |
+ SkImageGenerator* gen = NULL; |
+#if 0 |
scroggo
2014/12/30 11:14:33
Can we use a macro here to only behave this way if
reed1
2015/01/05 16:04:59
The #if 0 is meant to be (very) temporary, as I ho
|
+ // enable this when SkDecodingImageGenerator is available in chrome (decode codecs) |
+ gen = SkDecodingImageGenerator::Create(AsData(cdata), SkDecodingImageGenerator::Options()); |
+#endif |
if (NULL == gen) { |
return NULL; |
} |