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

Unified Diff: include/config/SkUserConfig.h

Issue 658343003: Fixes for partial images. (Closed) Base URL: https://skia.googlesource.com/skia.git/+/master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « no previous file | src/images/SkImageDecoder_libgif.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/config/SkUserConfig.h
diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h
index 5f59b9131c104f1029c3e956b18c3f3f9c6565f2..9e6ff69760afade7d9385068b82cf55dd3488532 100644
--- a/include/config/SkUserConfig.h
+++ b/include/config/SkUserConfig.h
@@ -178,4 +178,14 @@
//#define SK_MUTEX_PLATFORM_H "SkMutex_xxx.h"
//#define SK_BARRIERS_PLATFORM_H "SkBarriers_xxx.h"
+/*
+ * This flags determines what to do if a decoder atttempts to decode an
+ * incomplete stream. If defined, the decoder will return an image with that
+ * shows all the pixels available in the stream if the decoder is capable of
+ * partial decoding. Otherwise the decoder will report failure.
+ * NOTE: Currently only applies to JPEG and GIF.
+ * TODO: Perhaps this should be a runtime option in a future version of
+ * SkImageDecoder.
+ */
+//#define SK_DECODE_PARTIAL_IMAGES
#endif
« no previous file with comments | « no previous file | src/images/SkImageDecoder_libgif.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698