<?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>265365</bug_id>
          
          <creation_ts>2023-11-27 01:37:55 -0800</creation_ts>
          <short_desc>[CoordinatedGraphics] Canvas 2D rendering context causes unnecessary tile invalidations</short_desc>
          <delta_ts>2023-11-27 07:03:14 -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>Canvas</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jani Hautakangas">jani</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1994886</commentid>
    <comment_count>0</comment_count>
    <who name="Jani Hautakangas">jani</who>
    <bug_when>2023-11-27 01:37:55 -0800</bug_when>
    <thetext>CanvasRenderingContext2DBase tracks one dirty rect and does union of all incoming dirty rects within repaint cycle.
In coordinated graphics, canvas is tiled and this unification of rects causes unnecessary invalidation of tiles which
are not dirty. For example in case where canvas spans over multiple tiles and only small areas at top-left and
bottom-right corners of canvas are changed. This scenario causes whole canvas and all tiles to be marked dirty because
of unification of dirty areas although only top-left and bottom-right tiles are actually dirty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994887</commentid>
    <comment_count>1</comment_count>
    <who name="Jani Hautakangas">jani</who>
    <bug_when>2023-11-27 01:44:40 -0800</bug_when>
    <thetext>In coordinated graphics tiles do dirty rect unification internally</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994888</commentid>
    <comment_count>2</comment_count>
    <who name="Jani Hautakangas">jani</who>
    <bug_when>2023-11-27 01:50:17 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20917</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994923</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-27 07:02:03 -0800</bug_when>
    <thetext>Committed 271139@main (b2410e35eca0): &lt;https://commits.webkit.org/271139@main&gt;

Reviewed commits have been landed. Closing PR #20917 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994924</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-27 07:03:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/118832308&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>