DescriptionApply hairline optimization only if the path renderer wants it
Make the decision to convert thin, non-hairline paths to hairline
paths at the renderer level.
The current nv_path_rendering implementation does not render
hairlines. Rendering the hairlines with normal renderers cause
unneccessary gl program changes, which is quite slow.
Changes the behavior of non-nv_path_rendering paths to always perform
the optimization if the shape ends up being painted by a renderer that
wants the optimization. Previously the optimization was applied only
when callgraph started with SkCanvas::drawPath.
Applies the optimization for GrAAHairLineRenderer and
GrDefaultPathRenderer.
This changes gm results for dashing3_{msaa4,gpu} and drawlooper_msaa4.
Committed: http://code.google.com/p/skia/source/detail?r=12357
Patch Set 1 #
Total comments: 2
Patch Set 2 : address review comments #
Total comments: 4
Patch Set 3 : address comments #Patch Set 4 : trying to fix xoom regression #Patch Set 5 : address problems #
Messages
Total messages: 27 (0 generated)
|