DescriptionImplement stroking a path with nv_path_rendering
Initialize the path stroke properties in the GrGLPath constructor.
Use StencilStrokePath and CoverStrokePath to stroke the path.
The order of the GL calls is:
1. StencilFill, if needed
2. StencilStroke, if needed
2a. CoverStroke, if stroke was applied
2b. CoverFill, if stroke was not applied
The reason for not pairing StencilFill + CoverFill, StencilStroke +
CoverStroke is that Skia API does not allow separate fill and stroke
color within one call. Covering the stroke bounding box should also
cover the fill bounding box.
Causes different rendering in gm/dashcubics due to different rendering
algorithm. (?) (TODO: this should be resolved somehow.)
Committed: http://code.google.com/p/skia/source/detail?r=11672
Patch Set 1 #
Total comments: 4
Patch Set 2 : addressing review comments #Patch Set 3 : rebase #Patch Set 4 : addressing review comments #Patch Set 5 : rebase #
Messages
Total messages: 6 (0 generated)
|