blob: 7dd50fc6eb1f6987e3e81a37ce0d412ea41119bd [file] [log] [blame]
senorblancod6ed19c2015-02-26 06:58:17 -08001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrTessellatingPathRenderer_DEFINED
9#define GrTessellatingPathRenderer_DEFINED
10
11#include "GrPathRenderer.h"
12
13/**
14 * Subclass that renders the path by converting to screen-space trapezoids plus
15 * extra 1-pixel geometry for AA.
16 */
17class SK_API GrTessellatingPathRenderer : public GrPathRenderer {
18public:
19 GrTessellatingPathRenderer();
20
bsalomon0aff2fa2015-07-31 06:48:27 -070021private:
Chris Dalton5ed44232017-09-07 13:22:46 -060022 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
senorblancod6ed19c2015-02-26 06:58:17 -080023
bsalomon8acedde2016-06-24 10:42:16 -070024 StencilSupport onGetStencilSupport(const GrShape&) const override {
robertphillipse7d4b2f2015-08-13 07:57:10 -070025 return GrPathRenderer::kNoSupport_StencilSupport;
26 }
senorblancod6ed19c2015-02-26 06:58:17 -080027
bsalomon0aff2fa2015-07-31 06:48:27 -070028 bool onDrawPath(const DrawPathArgs&) override;
senorblancod6ed19c2015-02-26 06:58:17 -080029
30 typedef GrPathRenderer INHERITED;
31};
32
33#endif