2 * Copyright 2015 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef GrTessellatingPathRenderer_DEFINED
9 #define GrTessellatingPathRenderer_DEFINED
11 #include "GrPathRenderer.h"
14 * Subclass that renders the path by converting to screen-space trapezoids plus
15 * extra 1-pixel geometry for AA.
17 class SK_API GrTessellatingPathRenderer : public GrPathRenderer {
19 GrTessellatingPathRenderer();
21 bool canDrawPath(const GrDrawTarget*,
22 const GrPipelineBuilder*,
26 bool antiAlias) const SK_OVERRIDE;
29 StencilSupport onGetStencilSupport(const GrDrawTarget*,
30 const GrPipelineBuilder*,
32 const SkStrokeRec&) const SK_OVERRIDE;
34 bool onDrawPath(GrDrawTarget*,
37 const SkMatrix& viewMatrix,
40 bool antiAlias) SK_OVERRIDE;
42 typedef GrPathRenderer INHERITED;