aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/libpng
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2018-02-28 16:24:18 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-28 21:46:03 +0000
commit9e8a594905316d14aeb55ab5ab5f50e03cb847c6 (patch)
tree52fe46a142e298307fc1b75bc75d7821fdc3b2b3 /third_party/libpng
parent84447e03ac2c8543d1e943cb6f754b910581e4bc (diff)
Support pngs with incorrect CMF bytes
Bug: chromium:807324 Though these pngs are technically incorrect, many such PNGs exist, and they are supported in Chromium. Ensure that users of SkCodec (e.g. Android, Flutter) display them as well. Change-Id: I2f1e573b4b7039cea81f96397cc0aa4cbc9461c3 Reviewed-on: https://skia-review.googlesource.com/111082 Commit-Queue: Leon Scroggins <scroggo@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'third_party/libpng')
-rw-r--r--third_party/libpng/BUILD.gn2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
index a01ede6501..2b2d72a0e6 100644
--- a/third_party/libpng/BUILD.gn
+++ b/third_party/libpng/BUILD.gn
@@ -20,7 +20,7 @@ if (skia_use_system_libpng) {
"../externals/libpng",
]
- defines = []
+ defines = [ "PNG_SET_OPTION_SUPPORTED" ]
deps = [
"//third_party/zlib",
]