本文整理汇总了C++中TextureMapperLayer::clearBackingStoresRecursive方法的典型用法代码示例。如果您正苦于以下问题:C++ TextureMapperLayer::clearBackingStoresRecursive方法的具体用法?C++ TextureMapperLayer::clearBackingStoresRecursive怎么用?C++ TextureMapperLayer::clearBackingStoresRecursive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextureMapperLayer
的用法示例。
在下文中一共展示了TextureMapperLayer::clearBackingStoresRecursive方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: purgeGLResources
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());
}
示例2: purgeGLResources
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));
}