summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLucas Dupin <dupin@google.com>2021-05-06 17:45:59 -0700
committerLucas Dupin <dupin@google.com>2021-05-06 17:45:59 -0700
commita79111e05c0b28a48da88b0c30806ba0e84fa679 (patch)
tree29f7094558736e314050d5936f20fccd31302fd5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent7b0989f35dc44b2d4bb01e7396f9547e16544152 (diff)
Fix sparkle alpha blending
We should not blend between the fill alpha and the sparkle alpha. This would cause the sparkle pixel to have lower opacity than the fill, when the fillAlpha > sparkleAlpha. We do need to blend the fill and sparkle colors, but their alphas need to be combined separately. In the end we then premultiply the alpha into the color. Test: manual Bug: 186130682 Change-Id: I519f6c797839feda14e714c7375ee727aba2cf8b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions