bump product version to 7.6.3.2-android
[LibreOffice.git] / external / skia / fast-png-write.patch.1
blobf47a2af70460096dda4377953aee49799527da1f
1 diff --git a/src/images/SkImageEncoder.cpp b/src/images/SkImageEncoder.cpp
2 index a96a93e0fc..1c110afa58 100644
3 --- a/src/images/SkImageEncoder.cpp
4 +++ b/src/images/SkImageEncoder.cpp
5 @@ -46,6 +46,10 @@ bool SkEncodeImage(SkWStream* dst, const SkPixmap& src,
6              }
7              case SkEncodedImageFormat::kPNG: {
8                  SkPngEncoder::Options opts;
9 +                if (quality == 1) {
10 +                    opts.fFilterFlags = SkPngEncoder::FilterFlag::kNone;
11 +                    opts.fZLibLevel = 1;
12 +                }
13                  return SkPngEncoder::Encode(dst, src, opts);
14              }
15              case SkEncodedImageFormat::kWEBP: {