Closed
Bug 918613
Opened 11 years ago
Closed 11 years ago
Improve efficiency of using multiple paths with Cairo Moz2D
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
(Whiteboard: [Australis:M?][Australis:P1])
Attachments
(1 file, 1 obsolete file)
36.57 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
Right now the cairo code does some complex things to try and work with a path on the current context. We believe that in retrospect this might not have been the right approach, we should try using a cairo_path_t directly. The patch in here is still a little bit of a work in progress, some things could probably be done a little more efficient fairly easily.
Attachment #807553 -
Flags: feedback?(jmuizelaar)
Assignee | ||
Comment 1•11 years ago
|
||
This patch passes all the tests on try.
Attachment #807553 -
Attachment is obsolete: true
Attachment #807553 -
Flags: feedback?(jmuizelaar)
Attachment #810528 -
Flags: review?(jmuizelaar)
Comment 2•11 years ago
|
||
What's with the CopyGlyphsToBuilder signature change?
Comment 3•11 years ago
|
||
Marking this for our Australis tracker, since it seems this will likely address bug 919656.
Whiteboard: [Australis:M?][Australis:P1]
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > What's with the CopyGlyphsToBuilder signature change? Depending on the transform we get different glyphs outlines from Cairo when using GDI. This used to sort of 'automatically' work because the context we were setting the path on was usually the context of our actual DrawTarget. And as such already had the target transform set. This adjustment lets us explicitly specify the transform we want to draw the glyph with, which will guarantee the right behavior with Cairo.
Comment 5•11 years ago
|
||
Comment on attachment 810528 [details] [diff] [review] Use cairo_path_t and only copy to a context when needed v2 Review of attachment 810528 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/2d/ScaledFontBase.cpp @@ +81,2 @@ > > + bool isNewContext = !ctx; weird indentation here?
Attachment #810528 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3287d7bbdc14
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3287d7bbdc14
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e1226725f674
Comment 9•11 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #8) > https://hg.mozilla.org/mozilla-central/rev/e1226725f674 This was actually bug 918163.
You need to log in
before you can comment on or make changes to this bug.
Description
•