Index: src/gpu/GrAAConcavePathRenderer.h |
diff --git a/src/gpu/GrAAConcavePathRenderer.h b/src/gpu/GrAAConcavePathRenderer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f331ba88f35ee9c01a1ce76fc83066cb6e1f81e5 |
--- /dev/null |
+++ b/src/gpu/GrAAConcavePathRenderer.h |
@@ -0,0 +1,34 @@ |
+/* |
+ * 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 GrAAConcavePathRenderer_DEFINED |
+#define GrAAConcavePathRenderer_DEFINED |
+ |
+#include "GrPathRenderer.h" |
+#include "SkTemplates.h" |
+ |
+/** |
+ * Subclass that renders the path by converting to screen-space trapezoids plus |
+ * extra 1-pixel geometry for AA. |
+ */ |
+class SK_API GrAAConcavePathRenderer : public GrPathRenderer { |
+public: |
+ GrAAConcavePathRenderer(); |
+ |
+private: |
+ |
+ bool onCanDrawPath(const CanDrawPathArgs& args) const override; |
+ |
+ StencilSupport onGetStencilSupport(const SkPath&, |
+ const GrStrokeInfo&) const override; |
+ |
+ bool onDrawPath(const DrawPathArgs& args) override; |
+ |
+ typedef GrPathRenderer INHERITED; |
+}; |
+ |
+#endif |