Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[TexMap] Don't bother caching pattern transform matrix
https://bugs.webkit.org/show_bug.cgi?id=183633 Reviewed by Michael Catanzaro. Remove the m_patternTransform and m_patternTransformDirty member variables from the TextureMapperLayer class. These unnecessarily complicate the state update methods that need to compare the given attribute against the current state, and only update it if it has changed. Instead, compute the pattern TransformationMatrix value on-the-fly in the paintSelf() method, if at all necessary. No change in functionality. * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::paintSelf): (WebCore::TextureMapperLayer::setContentsRect): (WebCore::TextureMapperLayer::setContentsTileSize): (WebCore::TextureMapperLayer::setContentsTilePhase): (WebCore::TextureMapperLayer::computePatternTransformIfNeeded): Deleted. * platform/graphics/texmap/TextureMapperLayer.h: Canonical link: https://commits.webkit.org/199301@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
30 additions
and 26 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