OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrAADistanceFieldPathRenderer_DEFINED | 8 #ifndef GrAADistanceFieldPathRenderer_DEFINED |
9 #define GrAADistanceFieldPathRenderer_DEFINED | 9 #define GrAADistanceFieldPathRenderer_DEFINED |
10 | 10 |
11 #include "GrBatchAtlas.h" | 11 #include "GrBatchAtlas.h" |
12 #include "GrPathRenderer.h" | 12 #include "GrPathRenderer.h" |
13 #include "GrRect.h" | 13 #include "GrRect.h" |
14 | 14 |
15 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
16 #include "SkTDynamicHash.h" | 16 #include "SkTDynamicHash.h" |
17 | 17 |
18 class GrContext; | 18 class GrContext; |
19 | 19 |
20 class GrAADistanceFieldPathRenderer : public GrPathRenderer { | 20 class GrAADistanceFieldPathRenderer : public GrPathRenderer { |
21 public: | 21 public: |
22 GrAADistanceFieldPathRenderer(); | 22 GrAADistanceFieldPathRenderer(); |
23 virtual ~GrAADistanceFieldPathRenderer(); | 23 virtual ~GrAADistanceFieldPathRenderer(); |
24 | 24 |
25 private: | 25 private: |
26 StencilSupport onGetStencilSupport(const SkPath&) const override { | 26 StencilSupport onGetStencilSupport(const GrShape&) const override { |
27 return GrPathRenderer::kNoSupport_StencilSupport; | 27 return GrPathRenderer::kNoSupport_StencilSupport; |
28 } | 28 } |
29 | 29 |
30 bool onCanDrawPath(const CanDrawPathArgs&) const override; | 30 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
31 | 31 |
32 bool onDrawPath(const DrawPathArgs&) override; | 32 bool onDrawPath(const DrawPathArgs&) override; |
33 | 33 |
34 struct PathData { | 34 struct PathData { |
35 class Key { | 35 class Key { |
36 public: | 36 public: |
(...skipping 45 matching lines...) Loading... |
82 PathCache fPathCache; | 82 PathCache fPathCache; |
83 PathDataList fPathList; | 83 PathDataList fPathList; |
84 | 84 |
85 typedef GrPathRenderer INHERITED; | 85 typedef GrPathRenderer INHERITED; |
86 | 86 |
87 friend class AADistanceFieldPathBatch; | 87 friend class AADistanceFieldPathBatch; |
88 friend struct PathTestStruct; | 88 friend struct PathTestStruct; |
89 }; | 89 }; |
90 | 90 |
91 #endif | 91 #endif |
OLD | NEW |