Bug 57773 - Add a fast path for simple color backgrounds
Summary: Add a fast path for simple color backgrounds
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-04-04 11:59 PDT by Simon Fraser (smfr)
Modified: 2011-04-05 17:53 PDT (History)
2 users (show)

See Also:


Attachments
Patch (8.02 KB, patch)
2011-04-04 12:13 PDT, Simon Fraser (smfr)
adele: 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) 2011-04-04 11:59:28 PDT
We currently render rounded-corner color backgrounds via setting a clipping path and then filling the rect. This is slow in CG; it's better to just create a path for the rounded rect and fill it.
Comment 1 Simon Fraser (smfr) 2011-04-04 12:13:13 PDT
Created attachment 88094 [details]
Patch
Comment 2 Simon Fraser (smfr) 2011-04-05 13:32:56 PDT
http://trac.webkit.org/changeset/82969
Comment 3 Simon Fraser (smfr) 2011-04-05 17:53:38 PDT
<rdar://problem/9042985>