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

Unified Diff: third_party/libpng/png.h

Issue 754183005: Define CHROME_PNG_READ_iCCP_sRGB_cHRM_gAMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « third_party/libpng/README.chromium ('k') | third_party/libpng/pngrutil.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libpng/png.h
diff --git a/third_party/libpng/png.h b/third_party/libpng/png.h
index 29dc52b4dbea2a5c650ca08e4737bb0a2627ea79..be4456be2e1ccf150a7cdd1ea2bdeae0a270417c 100644
--- a/third_party/libpng/png.h
+++ b/third_party/libpng/png.h
@@ -850,6 +850,13 @@ typedef struct png_info_struct
/* GR-P, 0.96a */
/* Data valid if (valid & PNG_INFO_sRGB) non-zero. */
png_byte srgb_intent PNG_DEPSTRUCT; /* sRGB rendering intent [0, 1, 2, or 3] */
+#ifdef CHROME_PNG_READ_iCCP_sRGB_cHRM_gAMA
+ /* Set if cHRM or gAMA chunks were also seen in the PNG headers when
+ * sRGB and iCCP read support are both enabled. Values contained are
+ * chunk info->valid flags, viz., PNG_INFO_cHRM | PNG_INFO_gAMA.
+ */
+ png_uint_32 chroma_or_gamma;
+#endif
#endif
#ifdef PNG_TEXT_SUPPORTED
« no previous file with comments | « third_party/libpng/README.chromium ('k') | third_party/libpng/pngrutil.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698