<?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>77375</bug_id>
          
          <creation_ts>2012-01-30 15:18:42 -0800</creation_ts>
          <short_desc>(seemingly) Unecessary repainting activity during layer animation</short_desc>
          <delta_ts>2012-02-15 14:47:02 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>78020</dup_id>
          
          <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="Nat Duca">nduca</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jchaffraix</cc>
    
    <cc>reveman</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>twiz</cc>
    
    <cc>vangelis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>545475</commentid>
    <comment_count>0</comment_count>
    <who name="Nat Duca">nduca</who>
    <bug_when>2012-01-30 15:18:42 -0800</bug_when>
    <thetext>See attached example. I haven&apos;t studied it in detail, but it seems that when the div is half-outside the viewport, we have to repaint. The repaints themselves are light, but the texture uploads they cause are not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545476</commentid>
    <comment_count>1</comment_count>
      <attachid>124612</attachid>
    <who name="Nat Duca">nduca</who>
    <bug_when>2012-01-30 15:19:14 -0800</bug_when>
    <thetext>Created attachment 124612
Test case that repaints during animation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551432</commentid>
    <comment_count>2</comment_count>
    <who name="David Reveman">reveman</who>
    <bug_when>2012-02-07 15:03:24 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 78020 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>553132</commentid>
    <comment_count>3</comment_count>
    <who name="Nat Duca">nduca</who>
    <bug_when>2012-02-09 06:55:19 -0800</bug_when>
    <thetext>Based on this, I think we should add some TRACE macros to the compositor when texture eviction occurs so we can tell the difference between invalidation-driven repainting and cache-driven repainting. David, can you do a quick patch for that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>553201</commentid>
    <comment_count>4</comment_count>
    <who name="David Reveman">reveman</who>
    <bug_when>2012-02-09 08:49:14 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Based on this, I think we should add some TRACE macros to the compositor when texture eviction occurs so we can tell the difference between invalidation-driven repainting and cache-driven repainting. David, can you do a quick patch for that?

Sure! Should we just make eviction show up in the traces or should we try to make paint show up differently in traces as a result eviction compared to invalidation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557575</commentid>
    <comment_count>5</comment_count>
    <who name="Nat Duca">nduca</who>
    <bug_when>2012-02-15 14:47:02 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Sure! Should we just make eviction show up in the traces or should we try to make paint show up differently in traces as a result eviction compared to invalidation?

Lets just get the eviction to show up. Its better than nothing. :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>124612</attachid>
            <date>2012-01-30 15:19:14 -0800</date>
            <delta_ts>2012-01-30 15:19:14 -0800</delta_ts>
            <desc>Test case that repaints during animation</desc>
            <filename>nested_layer_animation.html</filename>
            <type>text/html</type>
            <size>1323</size>
            <attacher name="Nat Duca">nduca</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgICAucGFuZSB7CiAgICAg
IGxlZnQ6IDVweDsKICAgICAgdG9wOiA1cHg7CiAgICAgIGJhY2tncm91bmQtY29sb3I6IHJlZDsK
ICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgfQoKICAgICNjb250YWluZXIgewogICAgICBw
b3NpdGlvbjogYWJzb2x1dGU7CiAgICAgIGxlZnQ6IDIwMDBweDsKICAgICAgaGVpZ2h0OiAxMDAl
OwogICAgICB3aWR0aDogMTAwJTsKICAgICAgLXdlYmtpdC10cmFuc2l0aW9uOiAtd2Via2l0LXRy
YW5zZm9ybSAycyBlYXNlOwogICAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMSk7CiAgICAg
IC13ZWJraXQtdHJhbnNmb3JtLW9yaWdpbi14OiAtMjAwMHB4OwogICAgfQoKICAgIGJvZHkgewog
ICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgfQogIDwvc3R5bGU+CgogIDxzY3JpcHQgdHlwZT0i
dGV4dC9qYXZhc2NyaXB0Ij4KICAgIGZ1bmN0aW9uICQobykge3JldHVybiBkb2N1bWVudC5nZXRF
bGVtZW50QnlJZChvKTt9CgogICAgZnVuY3Rpb24gY2xpY2ttZSgpIHsKICAgICAgdmFyIGNvbnRh
aW5lciA9ICQoJ2NvbnRhaW5lcicpOwogICAgICBjb250YWluZXIuc3R5bGUud2Via2l0VHJhbnNm
b3JtID0gd2luZG93LnNjYWxlID8gJycgOiAnc2NhbGUoMC4xKSc7CiAgICAgIHdpbmRvdy5zY2Fs
ZSA9ICF3aW5kb3cuc2NhbGU7CiAgICB9CgogICAgd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkg
ewogICAgICB2YXIgY29udGFpbmVyID0gJCgnY29udGFpbmVyJyk7CiAgICAgIHZhciB3aWR0aCA9
IGNvbnRhaW5lci5vZmZzZXRXaWR0aDsKICAgICAgdmFyIGhlaWdodCA9IGNvbnRhaW5lci5vZmZz
ZXRIZWlnaHQ7CiAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgMjA7IGkrKykgewogICAgICAgIHZh
ciBkaXYgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdkaXYnKTsKICAgICAgICBkaXYuY2xhc3NO
YW1lID0gJ3BhbmUnOwogICAgICAgIHdpZHRoIC09IDEwOwogICAgICAgIGhlaWdodCAtPSAxMDsK
ICAgICAgICBkaXYuc3R5bGUud2lkdGggPSB3aWR0aDsKICAgICAgICBkaXYuc3R5bGUuaGVpZ2h0
ID0gaGVpZ2h0OwogICAgICAgIGNvbnRhaW5lci5hcHBlbmRDaGlsZChkaXYpOwogICAgICAgIGNv
bnRhaW5lciA9IGRpdjsKICAgICAgfQogICAgfQoKICA8L3NjcmlwdD4KPC9oZWFkPgoKPGJvZHk+
CiAgPGJ1dHRvbiBpZD0iY2xpY2ttZSIgdHlwZT0iYnV0dG9uIiBvbmNsaWNrPSJjbGlja21lKCk7
Ij5DbGljayBtZSE8L2J1dHRvbj4KICA8ZGl2IGlkPSJjb250YWluZXIiPgogIDwvZGl2Pgo8L2Jv
ZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>