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 SkNEW(GrAAHairLinePathRenderer); } | 16 static GrPathRenderer* Create() { return SkNEW(GrAAHairLinePathRenderer); } |
17 | 17 |
18 bool canDrawPath(const GrDrawTarget*, | |
19 const GrPipelineBuilder*, | |
20 const SkMatrix& viewMatrix, | |
21 const SkPath&, | |
22 const GrStrokeInfo&, | |
23 bool antiAlias) const override; | |
24 | |
25 typedef SkTArray<SkPoint, true> PtArray; | 18 typedef SkTArray<SkPoint, true> PtArray; |
26 typedef SkTArray<int, true> IntArray; | 19 typedef SkTArray<int, true> IntArray; |
27 typedef SkTArray<float, true> FloatArray; | 20 typedef SkTArray<float, true> FloatArray; |
28 | 21 |
29 protected: | 22 private: |
30 bool onDrawPath(GrDrawTarget*, | 23 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
31 GrPipelineBuilder*, | |
32 GrColor, | |
33 const SkMatrix& viewMatrix, | |
34 const SkPath&, | |
35 const GrStrokeInfo&, | |
36 bool antiAlias) override; | |
37 | 24 |
38 private: | 25 bool onDrawPath(const DrawPathArgs&) override; |
| 26 |
39 GrAAHairLinePathRenderer() {} | 27 GrAAHairLinePathRenderer() {} |
40 | 28 |
41 typedef GrPathRenderer INHERITED; | 29 typedef GrPathRenderer INHERITED; |
42 }; | 30 }; |
43 | 31 |
44 | 32 |
45 #endif | 33 #endif |
OLD | NEW |