| 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 GrDashLinePathRenderer_DEFINED |
| 9 | #define GrDashLinePathRenderer_DEFINED |
| 10 | |
| 11 | #include "src/gpu/GrPathRenderer.h" |
| 12 | |
| 13 | class GrGpu; |
| 14 | |
| 15 | class GrDashLinePathRenderer : public GrPathRenderer { |
| 16 | private: |
| 17 | const char* name() const final { return "DashLine"; } |
| 18 | |
| 19 | CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override; |
| 20 | |
| 21 | StencilSupport onGetStencilSupport(const GrStyledShape&) const override { |
| 22 | return kNoSupport_StencilSupport; |
| 23 | } |
| 24 | |
| 25 | bool onDrawPath(const DrawPathArgs&) override; |
| 26 | |
| 27 | sk_sp<GrGpu> fGpu; |
| 28 | typedef GrPathRenderer INHERITED; |
| 29 | }; |
| 30 | |
| 31 | |
| 32 | #endif |
| 33 |