WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42088
Canvas: Move fillRect() save/restore into GraphicsContext implementations
https://bugs.webkit.org/show_bug.cgi?id=42088
Summary
Canvas: Move fillRect() save/restore into GraphicsContext implementations
Andreas Kling
Reported
2010-07-12 09:39:19 PDT
CanvasRenderingContext2D::fillRect() will currently call save() and restore() on the GraphicsContext before and after calling fillRect(). This is unnecessary for Qt since GraphicsContextQt::fillRect() doesn't taint the QPainter.
Attachments
Proposed patch
(1.33 KB, patch)
2010-07-12 09:41 PDT
,
Andreas Kling
vestbo
: review-
vestbo
: commit-queue-
Details
Formatted Diff
Diff
Proposed patch v2
(4.80 KB, patch)
2010-07-12 11:16 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2010-07-12 09:41:12 PDT
Created
attachment 61240
[details]
Proposed patch Not the prettiest patch in the world. Cosmetic suggestions welcome.
Tor Arne Vestbø
Comment 2
2010-07-12 10:09:49 PDT
Comment on
attachment 61240
[details]
Proposed patch I think the right approach is to have the GC do save/restore if it needs it.
Andreas Kling
Comment 3
2010-07-12 11:11:09 PDT
CG doesn't need this either.
Andreas Kling
Comment 4
2010-07-12 11:16:02 PDT
Created
attachment 61248
[details]
Proposed patch v2 (Qt) Results from Hixie's skelet0n animation test:
http://hixie.ch/tests/adhoc/perf/video/002.html
Without this patch: Elapsed wall-clock time: 996ms (ideal: 640ms). Elapsed non-idle time: 356ms (ideal: 0ms). Speed: 15.06fps (ideal: 25.00fps). With this patch: Elapsed wall-clock time: 900ms (ideal: 640ms). Elapsed non-idle time: 260ms (ideal: 0ms). Speed: 16.67fps (ideal: 25.00fps).
WebKit Commit Bot
Comment 5
2010-07-12 11:34:34 PDT
Comment on
attachment 61248
[details]
Proposed patch v2 Clearing flags on attachment: 61248 Committed
r63102
: <
http://trac.webkit.org/changeset/63102
>
WebKit Commit Bot
Comment 6
2010-07-12 11:34:38 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug