commit | e29b3425d0623a58f2b6aa813f1bd76d15defccb | [log] [tgz] |
---|---|---|
author | Yanqiang Fan <yanqiang.fan@mediatek.com> | Mon Aug 03 14:02:36 2020 +0800 |
committer | Chong Zhang <chz@google.com> | Tue Aug 04 10:30:31 2020 -0700 |
tree | 65f5b5c12118aa75f51d1e326abe59da4378e549 | |
parent | 14e5956d05742abd1d35675c68d8dfc0e272c76a [diff] |
Reserve item ids for samples + grid Reserve item ids for samples + grid, if the file size is small than tile size, the mNumTiles is 1. The numItemsToReserve will equal to mNumTiles, not reserve id for grid item. It will cause grid item been over written, can not find the file size. Change the numItemsToReserve calculate expression from mNumTiles > 1 to mNumTiles > 0, to reserve id space for grid item. Bug: 162797911 Change-Id: I18638f1e9026282044c7df73f8a2d78d58a13447