Improve caching of dashed paths in GrStencilAndCoverPathRenderer
authorkkinnunen <kkinnunen@nvidia.com>
Tue, 19 May 2015 06:02:07 +0000 (23:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 06:02:07 +0000 (23:02 -0700)
commit50b58e6fbcc50785ceffacb2c51b22c6e67a7ab7
tree90e4c1dbf12534523f1f7e8a1cece158bd58cb45
parent54b8511189bb5da6bfd248fa63f5c4156e9e2bd6
Improve caching of dashed paths in GrStencilAndCoverPathRenderer

Improve caching of dashed paths in GrStencilAndCoverPathRenderer.
Look up the (NVPR specific) GrGLPath based on GrStrokeInfo and
the original path.

Use unique keys for all GrPaths.

Dash the path with Skia dash stroker and use that path geometry for
NVPR path.

NVPR internal dashing stroke is not used, because the dashing
implementation of NVPR does not match Skia implementation.

Review URL: https://codereview.chromium.org/1116123003
17 files changed:
src/gpu/GrPath.cpp
src/gpu/GrPath.h
src/gpu/GrPathRange.cpp
src/gpu/GrPathRange.h
src/gpu/GrPathRendering.cpp
src/gpu/GrPathRendering.h
src/gpu/GrStencilAndCoverPathRenderer.cpp
src/gpu/GrStencilAndCoverTextContext.cpp
src/gpu/GrStencilAndCoverTextContext.h
src/gpu/GrStrokeInfo.cpp
src/gpu/GrStrokeInfo.h
src/gpu/gl/GrGLPath.cpp
src/gpu/gl/GrGLPath.h
src/gpu/gl/GrGLPathRange.cpp
src/gpu/gl/GrGLPathRange.h
src/gpu/gl/GrGLPathRendering.cpp
src/gpu/gl/GrGLPathRendering.h