Closed
Bug 306801
Opened 19 years ago
Closed 16 years ago
convert canvas to Thebes
Categories
(Core :: Graphics: Canvas2D, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: vlad, Assigned: ebutler)
References
Details
Attachments
(2 files, 1 obsolete file)
63.59 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
54.39 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
the <canvas> impl needs to be converted to use thebes instead of cairo directly, so that eventually we can stop exporting cairo symbols from gkthebes.
Comment 1•18 years ago
|
||
woot woot. lets land this.
Reporter | ||
Comment 2•18 years ago
|
||
"this" the magic patch that's not here? :) I threw away my first thebes conversion because it was done before the recent canvas work for 1.8/1.9; I have to redo it again. Canvas is ok as-is right now, but it's something I want to do for 1.9.
Updated•16 years ago
|
Priority: -- → P2
Assignee | ||
Comment 3•16 years ago
|
||
Rough initial patch, getting rid of all direct cairo calls as possible, as well as cleaning up a few functions here and there. There are still some cairo calls left in due to lack of thebes support. In particular, there is no way to copy a path and restore and old path. One neat thing this also fixes is the problem that canvas wasn't getting CMS since the calls didn't go through thebes.
Assignee: vladimir → ebutler
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•16 years ago
|
||
Improved patch; now all Cairo calls are removed from Canvas.
Attachment #329914 -
Attachment is obsolete: true
Reporter | ||
Comment 5•16 years ago
|
||
Comment on attachment 330297 [details] [diff] [review] ver 0.2 This looks fine, just a few nits: 11:48 < vlad> ebutler: in nsCanvasPattern, get rid of the mData member 11:49 < vlad> ebutler: for enum Style, uncomment STYLE_MAX and get rid of the VC6 sucks #define -- we're not building with VC6 any more There are two places where you check !mSurface.get() -- just check !mSurface. In your DrawRect function, add spaces around the == used in the condition. In the "XXX cairo bug workaround", there's a method on mThebes that does that same thing; should use it instead -- mThebes->UpdateSurfaceClip(); Looks great otherwise!
Attachment #330297 -
Flags: review+
Assignee | ||
Comment 6•16 years ago
|
||
Changed a few things: fixed nits. Changed functions that take a enum Style to actually take Style instead of PRInt32. Replaced some of the NS_ADDREFs with forgets.
Assignee | ||
Updated•16 years ago
|
Attachment #330872 -
Flags: review?(vladimir)
Reporter | ||
Comment 7•16 years ago
|
||
Comment on attachment 330872 [details] [diff] [review] ver 1.0 Looks good, thanks!
Attachment #330872 -
Flags: review?(vladimir) → review+
Comment 8•16 years ago
|
||
Pushed to mozilla-central: http://hg.mozilla.org/mozilla-central/index.cgi/rev/4e627e64d650
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•