This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.