Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Texmap] Remove the backing store after 'style.visibility' for an ele…
…ment sets 'hidden'. https://bugs.webkit.org/show_bug.cgi?id=92492 Patch by Huang Dongsung <luxtella@company100.net> on 2012-07-30 Reviewed by Noam Rosenthal. Source/WebCore: This patch's purpose is to save vram memory. When visibility of the element sets hidden, we do not need to draw the element, so we do not need to keep a texture of the backing store. Currently, Texmap does not draw the element with visibility:hidden because RenderLayerBacking::paintIntoLayer does not draw anything. This patch just removes unused textures. No new tests - no new testable functionality. * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: (WebCore::GraphicsLayerTextureMapper::setContentsVisible): (WebCore): * platform/graphics/texmap/GraphicsLayerTextureMapper.h: (GraphicsLayerTextureMapper): * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::updateBackingStore): (WebCore::TextureMapperLayer::paintSelf): (WebCore::TextureMapperLayer::isVisible): (WebCore::TextureMapperLayer::syncCompositingStateSelf): * platform/graphics/texmap/TextureMapperLayer.h: (State): (WebCore::TextureMapperLayer::State::State): Source/WebKit2: Texmap handles visibility:hidden in this patch, so WebGraphicsLayer sends the LayerTreeCoordinatorProxyMessages with additional infomation to UIProcess. * Shared/WebLayerTreeInfo.h: * UIProcess/WebLayerTreeRenderer.cpp: (WebKit::WebLayerTreeRenderer::setLayerState): * WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp: (WebCore::WebGraphicsLayer::setContentsVisible): (WebCore): (WebCore::WebGraphicsLayer::syncLayerState): * WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.h: (WebGraphicsLayer): Canonical link: https://commits.webkit.org/110553@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
0fc202c
commit 75adb37
Showing
10 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters