blob: 09a359f7748d856318655e6827dcb96d3eca4cfb [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
Robert Phillipsdb0ec082021-08-19 12:30:12 -040011#include "src/gpu/v1/PathRenderer.h"
Robert Phillips17dc6582021-08-17 11:57:31 -040012
Robert Phillips17dc6582021-08-17 11:57:31 -040013class GrStyledShape;
14
15namespace skgpu::v1 {
16
Robert Phillipsdb0ec082021-08-19 12:30:12 -040017class SmallPathRenderer final : public PathRenderer {
Robert Phillips17dc6582021-08-17 11:57:31 -040018public:
19 SmallPathRenderer() = default;
20
21 const char* name() const override { return "Small"; }
22
23private:
24 StencilSupport onGetStencilSupport(const GrStyledShape&) const override {
Robert Phillipsdb0ec082021-08-19 12:30:12 -040025 return PathRenderer::kNoSupport_StencilSupport;
Robert Phillips17dc6582021-08-17 11:57:31 -040026 }
27
28 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
29
30 bool onDrawPath(const DrawPathArgs&) override;
Robert Phillips17dc6582021-08-17 11:57:31 -040031};
32
33} // namespace skgpu::v1
34
35#endif // SmallPathRenderer_DEFINED