<?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>82051</bug_id>
          
          <creation_ts>2012-03-23 06:35:16 -0700</creation_ts>
          <short_desc>Direct shadow casting by the background is an unnaturally *slow* path on some ports for some apps</short_desc>
          <delta_ts>2012-03-23 11:15:52 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Tom Hudson">tomhudson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>jasonparekh</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>586286</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2012-03-23 06:35:16 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/107836 (https://bugs.webkit.org/show_bug.cgi?id=78728) caused a severe performance regression for Chromium: an app under development with a large scrolling div that casts a shadow went from 6ms/frame paint time to 40-50ms/frame paint time while scrolling, all of the additional time spent in a blur.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586288</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2012-03-23 06:37:25 -0700</bug_when>
    <thetext>If I comment out two lines of the BoxShadow CL from Feb 15 (turning off the &quot;fast path&quot; in RenderBoxModelObject::fillPaintLayerExtended() and reactivating the &quot;slow path&quot; in RenderBox::paintBoxDecorations()), Chromium performance returns to what we were seeing before this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586332</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2012-03-23 07:33:26 -0700</bug_when>
    <thetext>Sorry about that! I had no intention to make any port or any app slower. Are you able to attach a test case that shows this slowdown, or otherwise to tell whether r107836 made that case slower in the OS X, Quartz-based WebKit?

I think the way to address this probably would be to refine the logic that determines if the shadow should be cast by the background, but I am wondering if the decision should be dependent on the GraphicsContext implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586461</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-03-23 10:21:09 -0700</bug_when>
    <thetext>Perhaps this should be considered to be a Skia performance bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586465</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2012-03-23 10:29:13 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Perhaps this should be considered to be a Skia performance bug?

We shouldn’t make changes in WebKit that make it slower, regardless of platform bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586509</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Hudson">tomhudson</who>
    <bug_when>2012-03-23 11:15:52 -0700</bug_when>
    <thetext>It might be something in the platform glue for Chromium, rather than Skia? The new code path ends up being presented to Skia as a 4px radius gaussian blur of the 1000x800 div that&apos;s being scrolled; I presume CG is doing something much smarter if this is a fast path. I filed http://code.google.com/p/chromium/issues/detail?id=119778 against Chromium to see if I can get somebody familiar with those layers to take a look.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>