From 6335a729769b06f0d6a1450c7c02e03f95bbb049 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Tue, 1 Sep 2015 06:50:55 -0700 Subject: Move PathRenderers to batches folder BUG=skia: Review URL: https://codereview.chromium.org/1306143005 --- src/gpu/batches/GrTessellatingPathRenderer.h | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/gpu/batches/GrTessellatingPathRenderer.h (limited to 'src/gpu/batches/GrTessellatingPathRenderer.h') diff --git a/src/gpu/batches/GrTessellatingPathRenderer.h b/src/gpu/batches/GrTessellatingPathRenderer.h new file mode 100644 index 0000000000..7598ceb065 --- /dev/null +++ b/src/gpu/batches/GrTessellatingPathRenderer.h @@ -0,0 +1,33 @@ +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef GrTessellatingPathRenderer_DEFINED +#define GrTessellatingPathRenderer_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 { +public: + GrTessellatingPathRenderer(); + +private: + bool onCanDrawPath(const CanDrawPathArgs& ) const override; + + StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override { + return GrPathRenderer::kNoSupport_StencilSupport; + } + + bool onDrawPath(const DrawPathArgs&) override; + + typedef GrPathRenderer INHERITED; +}; + +#endif -- cgit v1.2.3