aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/gm.gni
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-05-09 12:46:50 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-09 18:32:04 +0000
commit2e61b182dad86e592d12c8a73ffcc7555a6e11a2 (patch)
tree323281b163e71f8058eab694c9562a2c1b007b67 /gn/gm.gni
parentee2d9df087c5225c9f3ba0fb98d237905f2d650c (diff)
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 <scroggo@google.com> Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'gn/gm.gni')
-rw-r--r--gn/gm.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/gm.gni b/gn/gm.gni
index ae30ca80b3..5cfde5fe12 100644
--- a/gn/gm.gni
+++ b/gn/gm.gni
@@ -112,6 +112,7 @@ gm_sources = [
"$_gm/emboss.cpp",
"$_gm/emptypath.cpp",
"$_gm/encode.cpp",
+ "$_gm/encode-alpha-jpeg.cpp",
"$_gm/encode-platform.cpp",
"$_gm/encode-srgb.cpp",
"$_gm/etc1.cpp",