WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
4445
Optimizations to KCanvas
https://bugs.webkit.org/show_bug.cgi?id=4445
Summary
Optimizations to KCanvas
Tobias Lidskog
Reported
2005-08-15 13:41:00 PDT
Some minor changes can be made to KCanvasContainer to optimize bounding box calculation and hit testing.
Attachments
KCanvasContainer optimizations
(2.29 KB, patch)
2005-08-15 13:44 PDT
,
Tobias Lidskog
eric
: review-
Details
Formatted Diff
Diff
kCanvasItem optimizations
(1.61 KB, patch)
2005-08-15 16:03 PDT
,
Tobias Lidskog
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tobias Lidskog
Comment 1
2005-08-15 13:44:49 PDT
Created
attachment 3410
[details]
KCanvasContainer optimizations This patch also fixes two bugs in KCanvasContainer::collisions 1) the recursive loop return without examining all nodes (fixed in kde svn) 2) hit test for fill rect uses bounding box for path including stroke
Tobias Lidskog
Comment 2
2005-08-15 16:00:29 PDT
Updated bug title Will include a few more kcanvas optimizations for review in this bug. Layout tests need to be updated, but I'd rather do that once all changes have been reviewed to make merging easier.
Tobias Lidskog
Comment 3
2005-08-15 16:03:59 PDT
Created
attachment 3413
[details]
kCanvasItem optimizations add caching of stroked bounding box, since it's more expensive to calculate
Eric Seidel (no email)
Comment 4
2005-08-16 00:20:44 PDT
Comment on
attachment 3413
[details]
kCanvasItem optimizations The code could be simpler. + if(d->path && canvas() && canvas()->renderingDevice()) + { + result = bboxPath(true); + } and then an if, storing result in the appropriate place, followed by the return... I'll fix it when landing.
Eric Seidel (no email)
Comment 5
2005-08-16 00:21:53 PDT
Comment on
attachment 3410
[details]
KCanvasContainer optimizations Do you have any way of showing that this is actually faster?
Eric Seidel (no email)
Comment 6
2005-08-16 02:14:03 PDT
Commited item optimizations. Please file a separate bug for the remaining container optimizations.
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