[Webkit-unassigned] [Bug 20373] <canvas> code needs fewer #ifdefs (part 2)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 22 01:16:42 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20373
------- Comment #7 from eric at webkit.org 2008-08-22 01:16 PDT -------
As we talked about over IRC, since Cairo doesn't support saving separate stroke
and fill colors on the context, it obviously doesn't have a "draw" fast path.
Cairo GraphicsContext code needs to move to this model anyway:
someFillMethod()
{
// grab the current fill color off of the GraphicContextState
// set it as the "cairo source"
// do the actual fill
}
instead of how CG works, which is to just pipe the "set fill color" calls
straight down into the CoreGraphics context.
Also, because Cairo doesn't have a built-in fast-path for "draw", Cairo (and
any other graphics library which doesn't support simultaneous fill + stroke)
can just write:
GraphicsContext::drawPath()
{
fillPath();
strokePath();
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list