-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WPE] Add a soft limit to the amount of GPU memory BitmapTexturePool …
…can hold https://bugs.webkit.org/show_bug.cgi?id=271765 Reviewed by Carlos Garcia Campos. Add a soft limit to the amount of memory that BitmapTexturePool can hold. When the limit is reached, be more aggressive trying to release the stored textures. * Source/WebCore/PlatformWPE.cmake: * Source/WebCore/platform/graphics/texmap/BitmapTexturePool.cpp: (WebCore::BitmapTexturePool::BitmapTexturePool): (WebCore::BitmapTexturePool::acquireTexture): (WebCore::BitmapTexturePool::scheduleReleaseUnusedTextures): (WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired): (WebCore::BitmapTexturePool::enterLimitExceededModeIfNeeded): (WebCore::BitmapTexturePool::exitLimitExceededModeIfNeeded): * Source/WebCore/platform/graphics/texmap/BitmapTexturePool.h: Canonical link: https://commits.webkit.org/276997@main
- Loading branch information
Showing
3 changed files
with
70 additions
and
5 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