Index: src/gpu/GrTessellatingPathRenderer.h |
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrTessellatingPathRenderer.h |
similarity index 57% |
copy from src/gpu/GrSoftwarePathRenderer.h |
copy to src/gpu/GrTessellatingPathRenderer.h |
index 43d5e55ce9987ee830eed97b66a279af507e17e7..fbce60edd6304bddc593f2f91fbaa2a2d552b96f 100644 |
--- a/src/gpu/GrSoftwarePathRenderer.h |
+++ b/src/gpu/GrTessellatingPathRenderer.h |
@@ -1,35 +1,34 @@ |
- |
/* |
- * Copyright 2012 Google Inc. |
+ * Copyright 2014 Google Inc. |
* |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
*/ |
-#ifndef GrSoftwarePathRenderer_DEFINED |
-#define GrSoftwarePathRenderer_DEFINED |
+#ifndef GrTessellatingPathRenderer_DEFINED |
+#define GrTessellatingPathRenderer_DEFINED |
#include "GrPathRenderer.h" |
- |
-class GrContext; |
+#include "SkTemplates.h" |
/** |
- * This class uses the software side to render a path to an SkBitmap and |
- * then uploads the result to the gpu |
+ * Subclass that renders the path by converting to screen-space trapezoids plus |
+ * extra 1-pixel geometry for AA. |
*/ |
-class GrSoftwarePathRenderer : public GrPathRenderer { |
+class SK_API GrTessellatingPathRenderer : public GrPathRenderer { |
bsalomon
2015/01/20 15:12:24
Curious why this has SK_API?
Stephen White
2015/01/20 18:54:15
Copypasta from the DefaultPathRenderer. Should I r
|
public: |
- GrSoftwarePathRenderer(GrContext* context) |
- : fContext(context) { |
- } |
+ GrTessellatingPathRenderer(); |
- virtual bool canDrawPath(const GrDrawTarget*, |
- const GrDrawState*, |
+ virtual bool canDrawPath(const GrDrawTarget* target, |
+ const GrDrawState* drawState, |
const SkMatrix& viewMatrix, |
- const SkPath&, |
- const SkStrokeRec&, |
- bool antiAlias) const SK_OVERRIDE; |
-protected: |
+ const SkPath& path, |
+ const SkStrokeRec& rec, |
+ bool antiAlias) const; |
+ |
+ static bool gWireframe; |
+private: |
+ |
virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, |
const GrDrawState*, |
const SkPath&, |
@@ -43,9 +42,6 @@ protected: |
const SkStrokeRec&, |
bool antiAlias) SK_OVERRIDE; |
-private: |
- GrContext* fContext; |
- |
typedef GrPathRenderer INHERITED; |
}; |