summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMatt Sarett <msarett@google.com>2016-01-29 18:02:41 -0500
committerMatt Sarett <msarett@google.com>2016-02-01 14:15:35 +0000
commit33fcd11bc296fa495a4f4584f782c1c0fe4fe592 (patch)
treefb44746d2dfeda5dfd09522810a2ea789ea8141b /tools/aapt2/java/JavaClassGenerator_test.cpp
parentfc1159c808962a32746cbddd088ed069f78afcc2 (diff)
Encode paletted PNGs more efficiently (part 2)
Many PNGs have multiple distinct pixels with zero alpha. This CL allows us to treat all of those pixels as a single zero pixel. This saves space in the color palette and also may help save memory pages when we skip writing zeros. There is also a potential disadvantage: if someone intended to decode this image as unpremultiplied with particular transfer modes where their color components have an effect even though alpha is zero, this will prevent that. At the moment, we do not support unpremul as a source, so this won't affect anyone trying to draw with the view system. This change originated in: https://googleplex-android-review.git.corp.google.com/#/c/854580/ Change-Id: I702c7bd22d431cc7c775ed29bbd73c930f945ca3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions