diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-02-13 20:35:40 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-16 09:20:51 +0100 |
commit | 0ccf2c77e55c11393baca166369e3ffe5d2863c2 (patch) | |
tree | bd0839fac3ba0f5b573254205e79701d61ef810e /sax | |
parent | 0e98675b693c925c54a3820596dbad130ad73b35 (diff) |
android: discard image buffer as soon as we upload to a texture
Before TileLayer (which SubTile was a subclass of) held the
image buffer for the whole life cycle of the tile, which wastes
memory in case of SubTile as the image doesn't change (or changes
only when invalidated) for the whole tile lifecycle. This change
changes the SubTile inheritance to a general Layer and adds modified
logic from SingleTileLayer and TileLayer. In addition it now
discards the buffer as soon as it has been uploaded to a texture
so that it doesn't takes up double the memory anymore.
Change-Id: Ia104687d2df529182af412102459952b53e87950
Diffstat (limited to 'sax')
0 files changed, 0 insertions, 0 deletions