| Chris Dalton | b832ce6 | 2020-01-06 19:49:37 -0700 | [diff] [blame] | 1 | /* |
| 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. |
| 14 | class GrGpuTessellationPathRenderer : public GrPathRenderer { |
| Chris Dalton | 0f6bb8a | 2020-01-15 09:40:54 -0700 | [diff] [blame^] | 15 | StencilSupport onGetStencilSupport(const GrShape& shape) const override { |
| Chris Dalton | b832ce6 | 2020-01-06 19:49:37 -0700 | [diff] [blame] | 16 | // 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 |