OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrAAHairLinePathRenderer_DEFINED | 9 #ifndef GrAAHairLinePathRenderer_DEFINED |
10 #define GrAAHairLinePathRenderer_DEFINED | 10 #define GrAAHairLinePathRenderer_DEFINED |
11 | 11 |
12 #include "GrPathRenderer.h" | 12 #include "GrPathRenderer.h" |
13 | 13 |
14 class GrAAHairLinePathRenderer : public GrPathRenderer { | 14 class GrAAHairLinePathRenderer : public GrPathRenderer { |
15 public: | 15 public: |
16 static GrPathRenderer* Create() { return new GrAAHairLinePathRenderer; } | 16 GrAAHairLinePathRenderer() {} |
17 | 17 |
18 typedef SkTArray<SkPoint, true> PtArray; | 18 typedef SkTArray<SkPoint, true> PtArray; |
19 typedef SkTArray<int, true> IntArray; | 19 typedef SkTArray<int, true> IntArray; |
20 typedef SkTArray<float, true> FloatArray; | 20 typedef SkTArray<float, true> FloatArray; |
21 | 21 |
22 private: | 22 private: |
23 bool onCanDrawPath(const CanDrawPathArgs&) const override; | 23 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
24 | 24 |
25 bool onDrawPath(const DrawPathArgs&) override; | 25 bool onDrawPath(const DrawPathArgs&) override; |
26 | 26 |
27 GrAAHairLinePathRenderer() {} | |
28 | |
29 typedef GrPathRenderer INHERITED; | 27 typedef GrPathRenderer INHERITED; |
30 }; | 28 }; |
31 | 29 |
32 | 30 |
33 #endif | 31 #endif |
OLD | NEW |