void Tile::setContents(int x, int y, float scale, bool isExpandedPrefetchTile) { // TODO: investigate whether below check/discard is necessary if ((m_x != x) || (m_y != y) || (m_scale != scale)) { // neither texture is relevant discardTextures(); } android::AutoMutex lock(m_atomicSync); m_x = x; m_y = y; m_scale = scale; m_drawCount = TilesManager::instance()->getDrawGLCount(); if (isExpandedPrefetchTile) m_drawCount--; // deprioritize expanded painting region }
void FontManager::unload() { fonts.clear(); discardTextures(); }