Robert Phillips | 17dc658 | 2021-08-17 11:57:31 -0400 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2014 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 SmallPathRenderer_DEFINED |
| 9 | #define SmallPathRenderer_DEFINED |
| 10 | |
| 11 | #include "src/gpu/GrPathRenderer.h" |
| 12 | |
| 13 | class GrDrawOp; |
| 14 | class GrRecordingContext; |
| 15 | class GrStyledShape; |
| 16 | |
| 17 | namespace skgpu::v1 { |
| 18 | |
| 19 | class SmallPathRenderer final : public GrPathRenderer { |
| 20 | public: |
| 21 | SmallPathRenderer() = default; |
| 22 | |
| 23 | const char* name() const override { return "Small"; } |
| 24 | |
| 25 | private: |
| 26 | StencilSupport onGetStencilSupport(const GrStyledShape&) const override { |
| 27 | return GrPathRenderer::kNoSupport_StencilSupport; |
| 28 | } |
| 29 | |
| 30 | CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override; |
| 31 | |
| 32 | bool onDrawPath(const DrawPathArgs&) override; |
| 33 | |
| 34 | using INHERITED = GrPathRenderer; |
| 35 | }; |
| 36 | |
| 37 | } // namespace skgpu::v1 |
| 38 | |
| 39 | #endif // SmallPathRenderer_DEFINED |