From 2e61b182dad86e592d12c8a73ffcc7555a6e11a2 Mon Sep 17 00:00:00 2001 From: Matt Sarett Date: Tue, 9 May 2017 12:46:50 -0400 Subject: Add jpeg encoder alpha handling option This instructs us on how to encode jpegs when the src image has alpha. The original behavior is to ignore the alpha channel. This CL adds the option to blend the pixels onto opaque black. Note that kBlendOnBlack and kIgnore are identical unless the input alpha type is kUnpremul. Bug: 713862 Bug: skia:1501 Change-Id: I4891c70bb0ccd83f7974c359bd40a2143b5c49ac Reviewed-on: https://skia-review.googlesource.com/15817 Reviewed-by: Leon Scroggins Commit-Queue: Matt Sarett --- resources/rainbow-gradient.png | Bin 0 -> 2592 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/rainbow-gradient.png (limited to 'resources') diff --git a/resources/rainbow-gradient.png b/resources/rainbow-gradient.png new file mode 100644 index 0000000000..4e18a32716 Binary files /dev/null and b/resources/rainbow-gradient.png differ -- cgit v1.2.3