diff options
author | joshualitt <joshualitt@chromium.org> | 2015-09-01 06:50:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-01 06:50:55 -0700 |
commit | 6335a729769b06f0d6a1450c7c02e03f95bbb049 (patch) | |
tree | 86463f9ac9a06a6cc7d333e3cfcdfe602245f8b7 /src/gpu/batches/GrTessellatingPathRenderer.h | |
parent | fbccb5995dcda645a3a8af51805639cb0c0d2300 (diff) |
Move PathRenderers to batches folder
BUG=skia:
Review URL: https://codereview.chromium.org/1306143005
Diffstat (limited to 'src/gpu/batches/GrTessellatingPathRenderer.h')
-rw-r--r-- | src/gpu/batches/GrTessellatingPathRenderer.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 |