Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2450)

Unified Diff: src/gpu/GrAAConcavePathRenderer.h

Issue 692583002: WIP: GPU-accelerated trapezoidal path renderer. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrTrapezoidalPathRenderer -> GrAAConcavePathRenderer; swap MSAA support for a coverage ramp. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkStroke.cpp ('k') | src/gpu/GrAAConcavePathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/core/SkStroke.cpp ('k') | src/gpu/GrAAConcavePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698