From 9e8a594905316d14aeb55ab5ab5f50e03cb847c6 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Wed, 28 Feb 2018 16:24:18 -0500 Subject: 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 Reviewed-by: Derek Sollenberger --- third_party/libpng/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party/libpng') 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", ] -- cgit v1.2.3