Loading
Bug 1784049 - Free native surfaces held by tile cache on memory pressure. r=gw
When the webrender render backend receives a memory pressure event, call a new function TileCacheInstance.memory_pressure() for each tile cache owned by the render backend. This destroys each compositor tile and surface owned by the cache. By additionally setting the NativeTileId for each tile to None, we will automatically allocate new tiles if required during the next frame build. On Android with SWGL enabled, this helps prevent ballooning memory usage when opening several tabs, as memory pressure events are triggered when a tab is backgrounded. Differential Revision: https://phabricator.services.mozilla.com/D154635