-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 267599@main (499bdf9). https://bugs.webkit.org/show_bug.c…
…gi?id=261022 Move filter specific code from BitmapTextureGL to TextureMapperGL. https://bugs.webkit.org/show_bug.cgi?id=261022 Reviewed by Fujii Hironori. This is a preparation refactoring for https://bugs.webkit.org/show_bug.cgi?id=231653. To fix the issue above, we have to change the number of passes needed to do blur filtering according to the standard deviation of the blur. Now the number of passes for each filter is specified in BitmapTextureGL.cpp but other parameters regarding filtering such as shader options are specified in TextureMapperGL.cpp, which leads to the inconsistency and low readability. This change moves filter specific code from BitmapTextureGL.cpp to TextureMapperGL.cpp * Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp: (WebCore::BitmapTextureGL::applyFilters): (WebCore::getPassesRequiredForFilter): Deleted. * Source/WebCore/platform/graphics/texmap/BitmapTextureGL.h: (WebCore::BitmapTextureGL::FilterInfo::FilterInfo): (WebCore::BitmapTextureGL::setFilterInfo): * Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): (WebCore::TextureMapperGL::drawTexturePlanarYUV): (WebCore::TextureMapperGL::drawTextureSemiPlanarYUV): (WebCore::TextureMapperGL::drawTexturePackedYUV): (WebCore::TextureMapperGL::drawFilterPass): (WebCore::getPassesRequiredForFilter): (WebCore::TextureMapperGL::applyFilter): (WebCore::TextureMapperGL::drawFiltered): Deleted. * Source/WebCore/platform/graphics/texmap/TextureMapperGL.h: * Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::paintIntoSurface): Canonical link: https://commits.webkit.org/267599@main
- Loading branch information
1 parent
9b290c2
commit 2b0a1e3
Showing
5 changed files
with
72 additions
and
57 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