<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>24178</bug_id>
          
          <creation_ts>2009-02-25 16:51:20 -0800</creation_ts>
          <short_desc>GeneratedImage::drawPattern() appears to be using more memory than necessary</short_desc>
          <delta_ts>2009-08-20 22:51:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111080</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-02-25 16:51:20 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111081</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-02-25 16:51:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/6624024&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>