| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #ifndef GrDashLinePathRenderer_DEFINED | 8 #ifndef GrDashLinePathRenderer_DEFINED |
| 10 #define GrDashLinePathRenderer_DEFINED | 9 #define GrDashLinePathRenderer_DEFINED |
| 11 | 10 |
| 12 #include "GrPathRenderer.h" | 11 #include "GrPathRenderer.h" |
| 13 | 12 |
| 14 class GrDashLinePathRenderer : public GrPathRenderer { | 13 class GrDashLinePathRenderer : public GrPathRenderer { |
| 15 private: | 14 private: |
| 16 bool onCanDrawPath(const CanDrawPathArgs&) const override; | 15 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
| 17 | 16 |
| 18 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const
override { | 17 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const
override { |
| 19 return kNoSupport_StencilSupport; | 18 return kNoSupport_StencilSupport; |
| 20 } | 19 } |
| 21 | 20 |
| 22 bool onDrawPath(const DrawPathArgs&) override; | 21 bool onDrawPath(const DrawPathArgs&) override; |
| 23 | 22 |
| 24 SkAutoTUnref<GrGpu> fGpu; | 23 SkAutoTUnref<GrGpu> fGpu; |
| 25 typedef GrPathRenderer INHERITED; | 24 typedef GrPathRenderer INHERITED; |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 | 27 |
| 29 #endif | 28 #endif |
| OLD | NEW |