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] Avoid constructing Vector when setting new children of Textu…
…reMapperLayer https://bugs.webkit.org/show_bug.cgi?id=137265 Reviewed by Brent Fulgham. Instead of constructing a vector object and populating it with TextureMapperLayers every time the children of a GraphicsLayer change, the children vector is now passed directly to TextureMapperLayer::setChildren(), which properly downcasts GraphicsLayers and adds the new TextureMapperLayer children. * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: (WebCore::GraphicsLayerTextureMapper::commitLayerChanges): (WebCore::toTextureMapperLayerVector): Deleted. * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::setChildren): * platform/graphics/texmap/TextureMapperLayer.h: Canonical link: https://commits.webkit.org/158148@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
26 additions
and
15 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