Bug 79852 - Optimize the rects being drawn into compositing layers
Summary: Optimize the rects being drawn into compositing layers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-02-28 17:51 PST by Simon Fraser (smfr)
Modified: 2012-11-28 16:56 PST (History)
4 users (show)

See Also:


Attachments
Patch (2.49 KB, patch)
2012-02-28 18:14 PST, Simon Fraser (smfr)
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.