void LayerTreeHostProxy::purgeGLResources() { TextureMapperLayer* layer = toTextureMapperLayer(rootLayer()); if (layer) layer->clearBackingStoresRecursive(); m_directlyCompositedImages.clear(); m_textureMapper.clear(); m_backingStoresWithPendingBuffers.clear(); m_drawingAreaProxy->page()->process()->send(Messages::LayerTreeHost::PurgeBackingStores(), m_drawingAreaProxy->page()->pageID()); }
void LayerTreeRenderer::purgeGLResources() { TextureMapperLayer* layer = toTextureMapperLayer(rootLayer()); if (layer) layer->clearBackingStoresRecursive(); m_imageBackings.clear(); #if USE(GRAPHICS_SURFACE) m_surfaceBackingStores.clear(); #endif m_rootLayer.clear(); m_rootLayerID = InvalidCoordinatedLayerID; m_layers.clear(); m_fixedLayers.clear(); m_textureMapper.clear(); m_pendingSyncBackingStores.clear(); m_backingStoresWithPendingBuffers.clear(); setActive(false); dispatchOnMainThread(bind(&LayerTreeRenderer::purgeBackingStores, this)); }
void LayerTreeRenderer::purgeGLResources() { TextureMapperLayer* layer = toTextureMapperLayer(rootLayer()); if (layer) layer->clearBackingStoresRecursive(); m_directlyCompositedImages.clear(); #if USE(GRAPHICS_SURFACE) m_surfaceBackingStores.clear(); #endif m_rootLayer->removeAllChildren(); m_rootLayer.clear(); m_rootLayerID = InvalidWebLayerID; m_layers.clear(); m_fixedLayers.clear(); m_textureMapper.clear(); m_backingStoresWithPendingBuffers.clear(); setActive(false); callOnMainThread(bind(&LayerTreeRenderer::purgeBackingStores, this)); }