Bug 21510
Summary: | REGRESSION: Patterns are recreated every time they paint | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | pdr |
Priority: | P1 | Keywords: | NeedsReduction, Regression |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
Bug Depends on: | |||
Bug Blocks: | 21498 |
Eric Seidel (no email)
Patterns are recreated every time they paint
This is is a possible perf regression from the previous behavior where patterns were cached based on CTM over in the Canvas2dGraphicsContext object. Now that they're over on GraphicsContext we don't have a similar system for caching (yet). This bug is about building one so that we aren't recreating patterns every time we draw them.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
Btw, one way to solve this would be to simply roll out r35966, but given that we've had no complaints of poor canvas pattern drawing performance, and no performance tests to validate that we've actually regressed, I recommend we leave this code in for now.
Eric Seidel (no email)
all functional regressions from r35966 (tracked by bug 21498) are now fixed. Only this possible perf regression remains.
Dave Hyatt
The way to typically observe pattern performance issues is with large JPEGs as the pattern tile. This is how we noticed perf issues with creation/throwing stuff away in background tiling patterns in HTML.
Dave Hyatt
Initial landing in r37462.
Dave Hyatt
Wrong bug. Sorry.
Eric Seidel (no email)
I suspect this has long since been solved.