summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-03-11 11:41:35 -0500
committerJames O'Leary <jamesoleary@google.com>2021-03-11 12:30:23 -0500
commitfbbb5dd5cade7c9f775bff25a20dbc99ec74303e (patch)
treeed517b3acc783b66b37b8b787ae3744dd20f51ab /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2a75b45bff598ca0e5df868fb2474365f2c883b4 (diff)
Fix create colors in Wu quantizer
This line is suspiciously complicated compared to other 3 ints -> int representing color functions. This patch ensures the colors produced have an explicitly opaque alpha channel (transparent pixels are filtered out earlier in the quantization process), and ensures we're not unnecessarily masking the red/green/blue channels. Test: Add log dump to output hex for all colors created, immediately after the Wu quantization finishes, thus isolating it from the larger quantization process. Test a variety of wallpapers, make sure hex codes make sense, verify that the fix holds by converting Bug: 182333325 Change-Id: Ic0bd4afcd095845e00eb6d10d05aab336266d6c3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions