Index: src/gpu/GrDashLinePathRenderer.h |
diff --git a/src/gpu/GrTessellatingPathRenderer.h b/src/gpu/GrDashLinePathRenderer.h |
similarity index 62% |
copy from src/gpu/GrTessellatingPathRenderer.h |
copy to src/gpu/GrDashLinePathRenderer.h |
index 977260821fa1c699d4096c923ac6a84480d55d9a..632f30a898df53bb32ad172a1657b426227f1f67 100644 |
--- a/src/gpu/GrTessellatingPathRenderer.h |
+++ b/src/gpu/GrDashLinePathRenderer.h |
@@ -1,3 +1,4 @@ |
+ |
/* |
* Copyright 2015 Google Inc. |
* |
@@ -5,41 +6,41 @@ |
* found in the LICENSE file. |
*/ |
-#ifndef GrTessellatingPathRenderer_DEFINED |
-#define GrTessellatingPathRenderer_DEFINED |
+#ifndef GrDashLinePathRenderer_DEFINED |
+#define GrDashLinePathRenderer_DEFINED |
#include "GrPathRenderer.h" |
-/** |
- * Subclass that renders the path by converting to screen-space trapezoids plus |
- * extra 1-pixel geometry for AA. |
- */ |
-class SK_API GrTessellatingPathRenderer : public GrPathRenderer { |
+class GrDashLinePathRenderer : public GrPathRenderer { |
public: |
- GrTessellatingPathRenderer(); |
+ GrDashLinePathRenderer(GrContext*); |
+ ~GrDashLinePathRenderer(); |
bool canDrawPath(const GrDrawTarget*, |
const GrPipelineBuilder*, |
- const SkMatrix&, |
+ const SkMatrix& viewMatrix, |
const SkPath&, |
- const SkStrokeRec&, |
+ const GrStrokeInfo&, |
bool antiAlias) const override; |
-protected: |
+protected: |
StencilSupport onGetStencilSupport(const GrDrawTarget*, |
const GrPipelineBuilder*, |
const SkPath&, |
- const SkStrokeRec&) const override; |
+ const GrStrokeInfo&) const override { |
+ return kNoSupport_StencilSupport; |
+ } |
bool onDrawPath(GrDrawTarget*, |
GrPipelineBuilder*, |
GrColor, |
const SkMatrix& viewMatrix, |
const SkPath&, |
- const SkStrokeRec&, |
+ const GrStrokeInfo&, |
bool antiAlias) override; |
- |
+ SkAutoTUnref<GrGpu> fGpu; |
typedef GrPathRenderer INHERITED; |
}; |
+ |
#endif |