<?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>144503</bug_id>
          
          <creation_ts>2015-05-01 15:27:40 -0700</creation_ts>
          <short_desc>Web Inspector: Timeline: Differentiate between CPU and GPU paint</short_desc>
          <delta_ts>2026-01-12 09:03:55 -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>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tobias Reiss">tobi+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jonowells</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1090904</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias Reiss">tobi+webkit</who>
    <bug_when>2015-05-01 15:27:40 -0700</bug_when>
    <thetext>As a user I want to debug the frames of an animation (e.g. CSS Animations) and see if the frame was rendered mostly on the CPU (bad) or on the GPU (good). A user could immediately see if a CSS Property can be rendered efficiently.

## I&apos;d expect a well prepared CSS Animation of a scaling Ball that only uses Transform to mostly be processed on the GPU. Considering the animation contains of 4 frames: 

Frame 1:
[ ] Layout x ms
[ ] Paint (CPU) 10 ms (=&gt; Paint the ball into a Bitmap, send Bitmap and Animation instructions to the Compositor Thread)
[ ] Paint (GPU) 10 ms (=&gt; Upload the Bitmap to GPU and draw to Screen)

Frame 2:
[ ] Paint (GPU) 03 ms (=&gt; Draw Bitmap from GPU memory to screen with scaling 0.5)

Frame 3:
[ ] Paint (GPU) 03 ms (=&gt; Draw Bitmap from GPU memory to screen with scaling 0.6)

Frame 4:
[ ] Paint (GPU) 03 ms (=&gt; Draw Bitmap from GPU memory to screen with scaling 0.7)

## Now I prepare an CSS Animation of a Ball where I change the color from green to blue. The Frames are mostly expected to be processed on the CPU.

Frame 1:
[ ] Layout x ms
[ ] Paint (CPU) 10 ms (=&gt; Paint the ball with 100% green into a Bitmap, send Bitmap to the Compositor Thread)
[ ] Paint (GPU) 10 ms (=&gt; Upload the Bitmap to GPU and draw to Screen)

Frame 2:
[ ] Paint (CPU) 10 ms (=&gt; Paint the ball with 65% green and 35% blue into a Bitmap, send Bitmap to the Compositor Thread)
[ ] Paint (GPU) 10 ms (=&gt; Upload the Bitmap to GPU and draw to Screen)

Frame 3:
[ ] Paint (CPU) 10 ms (=&gt; Paint the ball with 35% green and 65% blue into a Bitmap, send Bitmap to the Compositor Thread)
[ ] Paint (GPU) 10 ms (=&gt; Upload the Bitmap to GPU and draw to Screen)

Frame 4:
[ ] Paint (CPU) 10 ms (=&gt; Paint the ball with 100% blue into a Bitmap, send Bitmap to the Compositor Thread)
[ ] Paint (GPU) 10 ms (=&gt; Upload the Bitmap to GPU and draw to Screen)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090905</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-05-01 15:28:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/20785757&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090960</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2015-05-01 16:30:19 -0700</bug_when>
    <thetext>+smfr and dino

I&apos;m not sure how much of this data is possible to gather, and how much of it is already sitting around somewhere and not plumbed through to the inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090973</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-05-01 16:43:06 -0700</bug_when>
    <thetext>We know total commit time, and webkit painting time. The delta is GPU painting plus a bunch of other stuff.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>