<?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>88265</bug_id>
          
          <creation_ts>2012-06-04 16:25:16 -0700</creation_ts>
          <short_desc>[Chromium] Avoid issuing glClear for opaque render surfaces.</short_desc>
          <delta_ts>2013-04-15 07:32:54 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="David Reveman">reveman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>danakj</cc>
    
    <cc>enne</cc>
    
    <cc>jamesr</cc>
    
    <cc>schenney</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>640967</commentid>
    <comment_count>0</comment_count>
    <who name="David Reveman">reveman</who>
    <bug_when>2012-06-04 16:25:16 -0700</bug_when>
    <thetext>We&apos;re currently issuing a glClear for all render surfaces except the root render surface. We should avoid issuing a glClear for opaque render surfaces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641586</commentid>
    <comment_count>1</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-06-05 08:28:10 -0700</bug_when>
    <thetext>Checking if a render surface is opaque is a bit annoying though. You&apos;ll need to merge all the opaque rects from its entire subtree. Will this work be &lt; the work to clear?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641617</commentid>
    <comment_count>2</comment_count>
    <who name="David Reveman">reveman</who>
    <bug_when>2012-06-05 09:04:09 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Checking if a render surface is opaque is a bit annoying though. You&apos;ll need to merge all the opaque rects from its entire subtree. Will this work be &lt; the work to clear?

That&apos;s hard to say as the glClear is done by the GPU while figuring out if we have to do the clear is of course not.

I doesn&apos;t have to be perfect. Could we just use the opaqueness of the owning layer as a start?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>641656</commentid>
    <comment_count>3</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-06-05 09:47:21 -0700</bug_when>
    <thetext>Yeh I toyed with that idea as well. We can, when the owning layer drawsContents and its content size == the surface size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875800</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2013-04-15 07:32:54 -0700</bug_when>
    <thetext>https://code.google.com/p/chromium/issues/detail?id=231338</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>