ce5e56e243d262a9b65459c3bd0bb9eaadd40628 |
|
22-Oct-2016 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2: Rename to match new style Use Google3 naming style to match new projects' and open source google projects' style. Preferred to do this in a massive CL so as to avoid style inconsistencies that plague legacy code bases. This is a relatively NEW code base, may as well keep it up to date. Test: name/style refactor - existing tests pass Change-Id: Ie80ecb78d46ec53efdfca2336bb57d96cbb7fb87
/frameworks/base/tools/aapt2/compile/Image.h
|
cacb28f2d60858106e2819cc7d95a65e8bda890b |
|
19-Oct-2016 |
Adam Lesinski <adamlesinski@google.com> |
Use Google3 style guide with .clang-format Test: style change only, builds ok Change-Id: I885180e24cb2e7b58cfb4967c3bcb40058ce4078
/frameworks/base/tools/aapt2/compile/Image.h
|
21efb6827cede06c2ab708de6cdb64d052dddcce |
|
15-Sep-2016 |
Adam Lesinski <adamlesinski@google.com> |
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
/frameworks/base/tools/aapt2/compile/Image.h
|