blob: c26fb3ded1b7007d8469c2095d31c800a9f0caea [file] [log] [blame]
Chris Daltonb832ce62020-01-06 19:49:37 -07001/*
2 * Copyright 2019 Google LLC.
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 GrGpuTessellationPathRenderer_DEFINED
9#define GrGpuTessellationPathRenderer_DEFINED
10
11#include "src/gpu/GrPathRenderer.h"
12
13// This is the tie-in point for path rendering via GrTessellatePathOp.
14class GrGpuTessellationPathRenderer : public GrPathRenderer {
Chris Dalton0f6bb8a2020-01-15 09:40:54 -070015 StencilSupport onGetStencilSupport(const GrShape& shape) const override {
Chris Daltonb832ce62020-01-06 19:49:37 -070016 // TODO: Single-pass (e.g., convex) paths can have full support.
17 return kStencilOnly_StencilSupport;
18 }
19
20 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
21 bool onDrawPath(const DrawPathArgs&) override;
22 void onStencilPath(const StencilPathArgs&) override;
23};
24
25#endif