[Webkit-unassigned] [Bug 24178] New: GeneratedImage::drawPattern() appears to be using more memory than necessary

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 25 16:51:20 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=24178

           Summary: GeneratedImage::drawPattern() appears to be using more
                    memory than necessary
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mitz at webkit.org


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.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list