On Thu, 25 Jan 2007 16:20:49 -0400, "bulia byak" <buliabyak@...400...> wrote:
On 1/25/07, MenTaLguY <mental@...3...> wrote: Are you sure? This optimization was added by knutux into livarot's Path class, and SPCanvasBPath does use Path for rendering. So it either works now, or should not be too difficult to enable.
Sort of. As part of his work he added a two-argument form of Path::Convert which optimizes the piecewise-linear conversion for the supplied viewing region, but it's still up to the rest of the code to figure out what that region is and pass it to Convert at the appropriate time. He only added that additional logic to NRArenaShape, not SPCanvasBPath.
Perhaps the best thing to do at this point, instead of duplicating that logic in SPCanvasBPath, would be to switch to using an SPCanvasArena with a single NRArenaShape in the places where SPCanvasBPaths are used now, and get rid of SPCanvasBPath.
-mental