commit | e66554d4be58ce548085487c031cf4d1eb9f76ae | [log] [tgz] |
---|---|---|
author | Chenjie Luo <cjluo@google.com> | Wed Jan 20 13:25:11 2016 -0800 |
committer | Chenjie Luo <cjluo@google.com> | Wed Jan 20 14:35:29 2016 -0800 |
tree | d2c133507718209f523b120fbc786013e24c8f95 | |
parent | 4a577bff9674f4bc748ab76bf48ac6e7d3e567cc [diff] |
Fix bug in AssetAtlas packing loop There is a bug in AssetAtlasService that it always choose the MAX_SIZE as height. The for loop of height calculation starts from MAX_SIZE and breaks when it finds a working texture. This means the height loop will always break for the initial value. Reording the loop optimize the algorithm to find a smaller atlas texture. The MIN_SIZE is also changed to 512 for fewer assets case. Bug: 26429912 Change-Id: Ic0b2396e9697c417a24f81ec792f8a8af53915ad