<?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>21510</bug_id>
          
          <creation_ts>2008-10-09 15:07:23 -0700</creation_ts>
          <short_desc>REGRESSION: Patterns are recreated every time they paint</short_desc>
          <delta_ts>2012-12-30 17:06:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>21498</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pdr</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94783</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-10-09 15:07:23 -0700</bug_when>
    <thetext>Patterns are recreated every time they paint

This is is a possible perf regression from the previous behavior where patterns were cached based on CTM over in the Canvas2dGraphicsContext object.  Now that they&apos;re over on GraphicsContext we don&apos;t have a similar system for caching (yet).  This bug is about building one so that we aren&apos;t recreating patterns every time we draw them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94785</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-10-09 15:10:35 -0700</bug_when>
    <thetext>Btw, one way to solve this would be to simply roll out r35966, but given that we&apos;ve had no complaints of poor canvas pattern drawing performance, and no performance tests to validate that we&apos;ve actually regressed, I recommend we leave this code in for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94826</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-10-09 19:30:10 -0700</bug_when>
    <thetext>all functional regressions from r35966  (tracked by bug 21498) are now fixed.  Only this possible perf regression remains.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94827</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-10-09 19:32:14 -0700</bug_when>
    <thetext>The way to typically observe pattern performance issues is with large JPEGs as the pattern tile.  This is how we noticed perf issues with creation/throwing stuff away in background tiling patterns in HTML.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94829</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-10-09 19:33:41 -0700</bug_when>
    <thetext>Initial landing in r37462.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94830</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-10-09 19:33:55 -0700</bug_when>
    <thetext>Wrong bug. Sorry.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798270</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-12-30 17:06:01 -0800</bug_when>
    <thetext>I suspect this has long since been solved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>