summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-09-14 17:35:43 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-09-29 15:28:52 -0700
commit21efb6827cede06c2ab708de6cdb64d052dddcce (patch)
tree0e2ab9e6220b5d731efcb417a490cff47b4329f7 /tools/aapt2/diff/Diff.cpp
parentb0de46ef079b8fae781b40a5a67bd7552bd81ddd (diff)
AAPT2: Refactor PngCrunching
PngCrunching now has a slightly better heuristic of choosing to encode an image as a palette or RGB. For small images, RGB compresses much better than a palette. The original PNG is used as-is (minus some optional chunks being stripped) if the resulting crunched PNG is larger than the original. 9-patch handling is abstracted away from PNGs, paving the way for other 9-patches, like WebP. TODO: handle PNGs with 9-patch chunks already present, which should just be passed through. This will allow for 3rd party tools to generate 9-patches. TODO: implement cheap transparency: when one color is used to represent transparent, and all other colors are opaque. Bug:30053276 Change-Id: I5167f53b91d1efa462d9f03d6b9108d9b541c0c1
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions