WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
24178
GeneratedImage::drawPattern() appears to be using more memory than necessary
https://bugs.webkit.org/show_bug.cgi?id=24178
Summary
GeneratedImage::drawPattern() appears to be using more memory than necessary
mitz
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2009-02-25 16:51:45 PST
<
rdar://problem/6624024
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug