Bug 79852

Summary: Optimize the rects being drawn into compositing layers
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, mitz, simon.fraser, thorton
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Description Simon Fraser (smfr) 2012-02-28 17:51:53 PST
We should make sure that we're not drawing more than necessary in composting layers because of rect coalescing.
Comment 1 Simon Fraser (smfr) 2012-02-28 18:14:09 PST
Created attachment 129370 [details]
Patch
Comment 2 mitz 2012-02-28 18:49:12 PST
Comment on attachment 129370 [details]
Patch

In drawRect: we examine the total area of all texts and do a single paint if they cover a sufficiently large fraction of the clip bounds. I wonder if we don't need something similar here.
Comment 3 mitz 2012-02-28 18:50:24 PST
s/texts/rects/.
Comment 4 Simon Fraser (smfr) 2012-02-28 20:19:19 PST
I wonder that too. I'll look to see if CA does that already.
Comment 5 Simon Fraser (smfr) 2012-02-28 20:47:50 PST
http://trac.webkit.org/changeset/109186
Comment 6 Simon Fraser (smfr) 2012-11-28 16:52:34 PST
<rdar://problem/9082399>
Comment 7 Simon Fraser (smfr) 2012-11-28 16:56:58 PST
This change was made to help http://ie.microsoft.com/testdrive/performance/mazesolver/default.html performance.