OSDN Git Service

Decode images to sRGB, premultiply based on framework define
authorMatt Sarett <msarett@google.com>
Wed, 21 Dec 2016 17:17:17 +0000 (12:17 -0500)
committerMatt Sarett <msarett@google.com>
Thu, 5 Jan 2017 15:45:18 +0000 (10:45 -0500)
commit33e3741cad838d3228aeb110a107b021bf7b90a7
treedf5bb7a43977b9e4ebd784f13a79ee3910a950a6
parente19fa20ca5a1e6f5c7fd95ed8990923a01185f92
Decode images to sRGB, premultiply based on framework define

This reenables color conversion to sRGB at decode time.

Use the value ANDROID_LINEAR_BLENDING_ENABLED to decide
whether to use the codec's linear premultiply or manually
perform a legacy premultiply.

Test: Demonstrated that legacy premultiply is still
faster than the linear premultiply.  So the performance
of the two pass approach (decode, then premultiply)
is acceptable.  Skia tests both of these decoding modes.

BUG:33741991
BUG:8860389
BUG:24279600

Change-Id: Idea0f359565bd8c7c3ba06e77a897173677db1c6
core/jni/Android.mk
core/jni/android/graphics/BitmapFactory.cpp