void CoordinatedLayerTreeHost::invalidate() { cancelPendingLayerFlush(); ASSERT(m_isValid); m_coordinator->clearRootLayer(); m_isValid = false; }
void LayerTreeCoordinator::invalidate() { cancelPendingLayerFlush(); ASSERT(m_isValid); m_rootLayer = nullptr; m_isValid = false; }
void LayerTreeHostGtk::invalidate() { ASSERT(m_isValid); cancelPendingLayerFlush(); m_rootLayer = nullptr; m_nonCompositedContentLayer = nullptr; m_textureMapper = nullptr; m_context = nullptr; m_isValid = false; }
void LayerTreeHostQt::setLayerFlushSchedulingEnabled(bool layerFlushingEnabled) { if (m_layerFlushSchedulingEnabled == layerFlushingEnabled) return; m_layerFlushSchedulingEnabled = layerFlushingEnabled; if (m_layerFlushSchedulingEnabled) return; cancelPendingLayerFlush(); }
void LayerTreeCoordinator::setLayerFlushSchedulingEnabled(bool layerFlushingEnabled) { if (m_layerFlushSchedulingEnabled == layerFlushingEnabled) return; m_layerFlushSchedulingEnabled = layerFlushingEnabled; if (m_layerFlushSchedulingEnabled) { scheduleLayerFlush(); return; } cancelPendingLayerFlush(); }
void LayerTreeHostGtk::invalidate() { ASSERT(m_isValid); // This can trigger destruction of GL objects so let's make sure that // we have the right active context if (m_context) m_context->makeContextCurrent(); cancelPendingLayerFlush(); m_rootLayer = nullptr; m_nonCompositedContentLayer = nullptr; m_textureMapper = nullptr; m_context = nullptr; m_isValid = false; }
LayerTreeHostGtk::~LayerTreeHostGtk() { ASSERT(!m_isValid); ASSERT(!m_rootLayer); cancelPendingLayerFlush(); }