Bug 57773 - Add a fast path for simple color backgrounds
Summary: Add a fast path for simple color backgrounds
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)
Keywords: InRadar
Depends on:
Reported: 2011-04-04 11:59 PDT by Simon Fraser (smfr)
Modified: 2011-04-05 17:53 PDT (History)
2 users (show)

See Also:

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]
Comment 2 Simon Fraser (smfr) 2011-04-05 13:32:56 PDT
Comment 3 Simon Fraser (smfr) 2011-04-05 17:53:38 PDT