kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 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 "GrPathRenderer.h" |
| 12 | |
| 13 | class GrDashLinePathRenderer : public GrPathRenderer { |
bsalomon | 0aff2fa | 2015-07-31 06:48:27 -0700 | [diff] [blame] | 14 | private: |
| 15 | bool onCanDrawPath(const CanDrawPathArgs&) const override; |
kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 16 | |
bsalomon | 8acedde | 2016-06-24 10:42:16 -0700 | [diff] [blame] | 17 | StencilSupport onGetStencilSupport(const GrShape&) const override { |
robertphillips | e7d4b2f | 2015-08-13 07:57:10 -0700 | [diff] [blame] | 18 | return kNoSupport_StencilSupport; |
kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 19 | } |
| 20 | |
bsalomon | 0aff2fa | 2015-07-31 06:48:27 -0700 | [diff] [blame] | 21 | bool onDrawPath(const DrawPathArgs&) override; |
| 22 | |
kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 23 | SkAutoTUnref<GrGpu> fGpu; |
| 24 | typedef GrPathRenderer INHERITED; |
| 25 | }; |
| 26 | |
| 27 | |
| 28 | #endif |