On Tue, Dec 8, 2015 at 4:34 PM, Nicholas Nethercote
<n.netherc...@gmail.com> wrote:
>
> One interesting thing I found is that a *lot* of the functions that
> take an nsRenderingContext or gfxContext do so because they end up
> passing it into text run code -- gfxTextRun uses a gfxContext, via
> gfxTextRunFactory::Parameters::mContext. However, only a few things
> from the gfxContext are used by the text run code:
>
> - gfxContext::GetCairo() is called in numerous places.

I was able to find a bunch of functions that only needed
gfxContext::mRefCairo and so I've changed them to take a |cairo_t*|
instead of a |gfxContext*|, which clears things up a bit:
https://bugzilla.mozilla.org/show_bug.cgi?id=1231550

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to