blob: cb93b3402f2fc62ff6c50c6ed197fc83af2f14ab [file] [log] [blame]
Robert Phillips17dc6582021-08-17 11:57:31 -04001/*
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
13class GrDrawOp;
14class GrRecordingContext;
15class GrStyledShape;
16
17namespace skgpu::v1 {
18
19class SmallPathRenderer final : public GrPathRenderer {
20public:
21 SmallPathRenderer() = default;
22
23 const char* name() const override { return "Small"; }
24
25private:
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