OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 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 GrAALinearizingConvexPathRenderer_DEFINED | 9 #ifndef GrAALinearizingConvexPathRenderer_DEFINED |
10 #define GrAALinearizingConvexPathRenderer_DEFINED | 10 #define GrAALinearizingConvexPathRenderer_DEFINED |
11 | 11 |
12 #include "GrPathRenderer.h" | 12 #include "GrPathRenderer.h" |
13 | 13 |
14 class GrAALinearizingConvexPathRenderer : public GrPathRenderer { | 14 class GrAALinearizingConvexPathRenderer : public GrPathRenderer { |
15 public: | 15 public: |
16 GrAALinearizingConvexPathRenderer(); | 16 GrAALinearizingConvexPathRenderer(); |
17 | 17 |
18 virtual bool canDrawPath(const GrDrawTarget*, | 18 private: |
19 const GrPipelineBuilder*, | 19 bool onCanDrawPath(const CanDrawPathArgs&) const override; |
20 const SkMatrix& viewMatrix, | |
21 const SkPath&, | |
22 const GrStrokeInfo&, | |
23 bool antiAlias) const override; | |
24 | 20 |
25 protected: | 21 bool onDrawPath(const DrawPathArgs&) override; |
26 virtual bool onDrawPath(GrDrawTarget*, | |
27 GrPipelineBuilder*, | |
28 GrColor, | |
29 const SkMatrix& viewMatrix, | |
30 const SkPath&, | |
31 const GrStrokeInfo&, | |
32 bool antiAlias) override; | |
33 }; | 22 }; |
34 | 23 |
35 #endif | 24 #endif |
OLD | NEW |