Bug 24178 - GeneratedImage::drawPattern() appears to be using more memory than necessary
Summary: GeneratedImage::drawPattern() appears to be using more memory than necessary
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-02-25 16:51 PST by mitz
Modified: 2009-08-20 22:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2009-02-25 16:51:20 PST
GeneratedImage::drawPattern() creates an ImageBuffer the size of a tile, then creates an Image of the same size, which results in another copy of the data being made. For large tiles (such as a gradient whose height is the height of the body element), those are very large allocations. On the CG platforms, the code can be re-worked to utilize CGPattern, with the generator being called from the pattern callback and CG managing the memory allocation. Experimentation (as part of investigating bug 24130) has shown that this results in much faster painting and reduced memory use.
Comment 1 mitz 2009-02-25 16:51:45 PST
<rdar://problem/6624024>