xref: /aosp_15_r20/external/skia/src/gpu/ganesh/ops/DashLinePathRenderer.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2015 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 skgpu_ganesh_DashLinePathRenderer_DEFINED
9 #define skgpu_ganesh_DashLinePathRenderer_DEFINED
10 
11 #include "src/gpu/ganesh/PathRenderer.h"
12 
13 class GrStyledShape;
14 
15 namespace skgpu::ganesh {
16 
17 class DashLinePathRenderer final : public skgpu::ganesh::PathRenderer {
18 public:
19     DashLinePathRenderer() = default;
20 
name()21     const char* name() const override { return "DashLine"; }
22 
23 private:
24     CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
25 
onGetStencilSupport(const GrStyledShape &)26     StencilSupport onGetStencilSupport(const GrStyledShape&) const override {
27         return kNoSupport_StencilSupport;
28     }
29 
30     bool onDrawPath(const DrawPathArgs&) override;
31 };
32 
33 } // namespace skgpu::ganesh
34 
35 #endif // skgpu_ganesh_DashLinePathRenderer_DEFINED
36