Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: src/c/sk_surface.cpp

Issue 820343002: disable using codecs until that can work in chrome (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gm/cgm.c ('K') | « gm/cgm.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« gm/cgm.c ('K') | « gm/cgm.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698