<?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>60864</bug_id>
          
          <creation_ts>2011-05-15 17:55:57 -0700</creation_ts>
          <short_desc>Suboptimal lifetime of BackingStore objects in DrawingAreaProxyImpl</short_desc>
          <delta_ts>2011-05-16 10:48:07 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>404238</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-05-15 17:55:57 -0700</bug_when>
    <thetext>BackingStore objects can be reused in DrawingAreaProxyImpl::didUpdateBackingStoreState as per a FIXME: comment.  This is likely to be more efficient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404276</commentid>
    <comment_count>1</comment_count>
      <attachid>93604</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-05-15 22:02:54 -0700</bug_when>
    <thetext>Created attachment 93604
Patch to reuse backing stores and reduce timeout to 2 seconds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404280</commentid>
    <comment_count>2</comment_count>
      <attachid>93604</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-05-15 22:08:28 -0700</bug_when>
    <thetext>Comment on attachment 93604
Patch to reuse backing stores and reduce timeout to 2 seconds

View in context: https://bugs.webkit.org/attachment.cgi?id=93604&amp;action=review

r=me

&gt; Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp:212
&gt; +    // If we have a backing store the right size, reuse it.

&quot;backing store that is the right size&quot; would make for a more grammatically correct comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404290</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-05-15 22:31:36 -0700</bug_when>
    <thetext>Committed r86524: &lt;http://trac.webkit.org/changeset/86524&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404438</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-16 06:05:58 -0700</bug_when>
    <thetext>Was any (non-memory) performance testing done of the 5 second -&gt; 2 second change? See bug 51262 comment 5 and bug 51262 comment 6 (and other comments, too) for how the 5-second interval was arrived at.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>404587</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-05-16 10:48:07 -0700</bug_when>
    <thetext>(In reply to comment #4)

I did some bench testing looking for white flash problems.  This included running with little free memory and a large number of tabs / windows (40-50).  I didn&apos;t notice any white flashing or unreasonable delays.  With instrumentation, I noticed that the number of backing stores would grow as needed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>93604</attachid>
            <date>2011-05-15 22:02:54 -0700</date>
            <delta_ts>2011-05-15 22:08:28 -0700</delta_ts>
            <desc>Patch to reuse backing stores and reduce timeout to 2 seconds</desc>
            <filename>60864.patch</filename>
            <type>text/plain</type>
            <size>2222</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDg2NTE5KQorKysgU291cmNlL1dlYktpdDIvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMjAgQEAKKzIwMTEtMDUtMTUgIE1pY2hhZWwg
U2Fib2ZmICA8bXNhYm9mZkBhcHBsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgU3Vib3B0aW1hbCBsaWZldGltZSBvZiBCYWNraW5nU3RvcmUg
b2JqZWN0cyBpbiBEcmF3aW5nQXJlYVByb3h5SW1wbAorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjA4NjQKKworICAgICAgICBJbXBsZW1lbnRlZCByZXVz
ZSBvZiBCYWNraW5nU3RvcmUncyBpbiAKKyAgICAgICAgRHJhd2luZ0FyZWFQcm94eUltcGw6OmRp
ZFVwZGF0ZUJhY2tpbmdTdG9yZVN0YXRlIHdoZW4gdGhlIHNpemUgbmVlZGVkCisgICAgICAgIG1h
dGNoZXMgdGhlIHNpemUgb2YgdGhlIGV4aXN0aW5nIEJhY2tpbmdTdG9yZS4KKyAgICAgICAgQWxz
byByZWR1Y2VkIHRoZSBkaXNjYXJkQmFja2luZ1N0b3JlVGltZXIgZnJvbSA1IHRvIDIgc2Vjb25k
cy4KKyAgICAgICAgVGhlc2UgY2hhbmdlcyByZWR1Y2VzIG1lbW9yeSB1c2FnZSB1cCB0byAxME1C
IG9uIG1lbW9yeSB0ZXN0cy4KKworICAgICAgICAq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sIHJldXNlIGl0LgorICAgIGlmICht
X2JhY2tpbmdTdG9yZSAmJiBtX2JhY2tpbmdTdG9yZS0+c2l6ZSgpICE9IHVwZGF0ZUluZm8udmll
d1NpemUpCisgICAgICAgIG1fYmFja2luZ1N0b3JlID0gbnVsbHB0cjsKICAgICBpbmNvcnBvcmF0
ZVVwZGF0ZSh1cGRhdGVJbmZvKTsKIH0KIApAQCAtMzUyLDcgKzM1Miw3IEBAIHZvaWQgRHJhd2lu
Z0FyZWFQcm94eUltcGw6OmRpc2NhcmRCYWNraW4KIAogICAgIC8vIFdlJ2xsIHdhaXQgdGhpcyBt
YW55IHNlY29uZHMgYWZ0ZXIgdGhlIGxhc3QgcGFpbnQgYmVmb3JlIHRocm93aW5nIGF3YXkgb3Vy
IGJhY2tpbmcgc3RvcmUgdG8gc2F2ZSBtZW1vcnkuCiAgICAgLy8gRklYTUU6IEl0IHdvdWxkIGJl
IHNtYXJ0ZXIgdG8gbWFrZSB0aGlzIGRlbGF5IGJhc2VkIG9uIGhvdyBleHBlbnNpdmUgcGFpbnRp
bmcgaXMuIFNlZSA8aHR0cDovL3dlYmtpdC5vcmcvYi81NTczMz4uCi0gICAgc3RhdGljIGNvbnN0
IGRvdWJsZSBkaXNjYXJkQmFja2luZ1N0b3JlRGVsYXkgPSA1OworICAgIHN0YXRpYyBjb25zdCBk
b3VibGUgZGlzY2FyZEJhY2tpbmdTdG9yZURlbGF5ID0gMjsKIAogICAgIG1fZGlzY2FyZEJhY2tp
bmdTdG9yZVRpbWVyLnN0YXJ0T25lU2hvdChkaXNjYXJkQmFja2luZ1N0b3JlRGVsYXkpOwogfQo=
</data>
<flag name="review"
          id="86796"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>