Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Source/WebCore: Support detaching TextureManager from ManagedTexture
https://bugs.webkit.org/show_bug.cgi?id=77655 Reviewed by Kenneth Russell. Initial patch by Alok Priyadarshi. TextureManager now holds references to the textures it manages. This allows TextureManager to inform managed textures when it gets deleted so that the texture that outlive the TextureManager can handle the situation gracefully. Unit test in TextureManagerTest.cpp * platform/graphics/chromium/ManagedTexture.cpp: (WebCore::ManagedTexture::ManagedTexture): (WebCore::ManagedTexture::~ManagedTexture): (WebCore): (WebCore::ManagedTexture::managerWillDie): (WebCore::ManagedTexture::isValid): (WebCore::ManagedTexture::reserve): (WebCore::ManagedTexture::unreserve): (WebCore::ManagedTexture::steal): (WebCore::ManagedTexture::reset): * platform/graphics/chromium/ManagedTexture.h: (WebCore::ManagedTexture::manager): (ManagedTexture): (WebCore::ManagedTexture::isReserved): * platform/graphics/chromium/TextureManager.cpp: (WebCore::TextureManager::~TextureManager): (WebCore): (WebCore::TextureManager::setPreferredMemoryLimitBytes): (WebCore::TextureManager::registerTexture): (WebCore::TextureManager::unregisterTexture): * platform/graphics/chromium/TextureManager.h: (WebCore): (TextureManager): Source/WebKit/chromium: [chromium] Support detaching TextureManager from ManagedTexture https://bugs.webkit.org/show_bug.cgi?id=77655 Adds unit test for destroying a TextureManager while ManagedTextures are still alive referring to it. Reviewed by Kenneth Russell. * tests/TextureManagerTest.cpp: Canonical link: https://commits.webkit.org/94765@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@106840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
115 additions
and
4 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