CompositingCoordinator::~CompositingCoordinator() { purgeBackingStores(); for (auto& registeredLayer : m_registeredLayers.values()) registeredLayer->setCoordinator(0); }
CompositingCoordinator::~CompositingCoordinator() { purgeBackingStores(); LayerMap::iterator end = m_registeredLayers.end(); for (LayerMap::iterator it = m_registeredLayers.begin(); it != end; ++it) it->value->setCoordinator(0); }
CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer() { if (m_coordinator) { purgeBackingStores(); m_coordinator->detachLayer(this); } ASSERT(!m_coordinatedImageBacking && !m_mainBackingStore); willBeDestroyed(); }
WebGraphicsLayer::~WebGraphicsLayer() { layerByIDMap().remove(id()); if (m_webGraphicsLayerClient) { purgeBackingStores(); m_webGraphicsLayerClient->detachLayer(this); } willBeDestroyed(); }
CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost() { #if ENABLE(CSS_SHADERS) disconnectCustomFilterPrograms(); #endif purgeBackingStores(); LayerMap::iterator end = m_registeredLayers.end(); for (LayerMap::iterator it = m_registeredLayers.begin(); it != end; ++it) it->value->setCoordinator(0); }
CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost() { #if ENABLE(CSS_SHADERS) disconnectCustomFilterPrograms(); #endif purgeBackingStores(); HashSet<WebCore::CoordinatedGraphicsLayer*>::iterator end = m_registeredLayers.end(); for (HashSet<WebCore::CoordinatedGraphicsLayer*>::iterator it = m_registeredLayers.begin(); it != end; ++it) (*it)->setCoordinator(0); }
void WebGraphicsLayer::setWebGraphicsLayerClient(WebKit::WebGraphicsLayerClient* client) { if (m_webGraphicsLayerClient == client) return; if (WebGraphicsLayer* replica = toWebGraphicsLayer(replicaLayer())) replica->setWebGraphicsLayerClient(client); if (WebGraphicsLayer* mask = toWebGraphicsLayer(maskLayer())) mask->setWebGraphicsLayerClient(client); for (size_t i = 0; i < children().size(); ++i) { WebGraphicsLayer* layer = toWebGraphicsLayer(this->children()[i]); layer->setWebGraphicsLayerClient(client); } // We have to release resources on the UI process here if the remote client has changed or is removed. if (m_webGraphicsLayerClient) { purgeBackingStores(); m_webGraphicsLayerClient->detachLayer(this); } m_webGraphicsLayerClient = client; if (client) client->attachLayer(this); }