From 50b58e6fbcc50785ceffacb2c51b22c6e67a7ab7 Mon Sep 17 00:00:00 2001 From: kkinnunen Date: Mon, 18 May 2015 23:02:07 -0700 Subject: 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 --- src/gpu/gl/GrGLPathRendering.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpu/gl/GrGLPathRendering.h') diff --git a/src/gpu/gl/GrGLPathRendering.h b/src/gpu/gl/GrGLPathRendering.h index 25e8ef03ef..84bac6c117 100644 --- a/src/gpu/gl/GrGLPathRendering.h +++ b/src/gpu/gl/GrGLPathRendering.h @@ -33,12 +33,12 @@ public: virtual ~GrGLPathRendering(); // GrPathRendering implementations. - GrPath* createPath(const SkPath&, const SkStrokeRec&) override; + GrPath* createPath(const SkPath&, const GrStrokeInfo&) override; virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, - const SkStrokeRec&) override; + const GrStrokeInfo&) override; virtual GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, - const SkStrokeRec&) override; + const GrStrokeInfo&) override; void stencilPath(const GrPath*, const GrStencilSettings&) override; void drawPath(const GrPath*, const GrStencilSettings&) override; virtual void drawPaths(const GrPathRange*, const void* indices, PathIndexType, -- cgit v1.2.3