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
[chromium] Inform v8 about extra memory used for PatternSkia clamp mode
https://bugs.webkit.org/show_bug.cgi?id=79846 Reviewed by James Robinson. For large images, creating a non-repeating Pattern in Skia can allocate a lot of memory. Inform v8 about this so that it can potentially garbage collect any Pattern objects that aren't being used and that are holding onto large image copies. * platform/graphics/Pattern.cpp: (WebCore::Pattern::Pattern): * platform/graphics/Pattern.h: (Pattern): * platform/graphics/skia/PatternSkia.cpp: (WebCore::Pattern::platformDestroy): (WebCore::Pattern::platformPattern): Canonical link: https://commits.webkit.org/96929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 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
@@ -37,6 +37,7 @@ Pattern::Pattern(PassRefPtr<Image> image, bool repeatX, bool repeatY) | ||
, m_repeatY(repeatY) | ||
#if USE(SKIA) | ||
, m_pattern(0) | ||
, m_externalMemoryAllocated(0) | ||
#endif | ||
{ | ||
ASSERT(m_tileImage); | ||
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