OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrTessellatingPathRenderer_DEFINED | 8 #ifndef GrTessellatingPathRenderer_DEFINED |
9 #define GrTessellatingPathRenderer_DEFINED | 9 #define GrTessellatingPathRenderer_DEFINED |
10 | 10 |
11 #include "GrPathRenderer.h" | 11 #include "GrPathRenderer.h" |
12 | 12 |
13 /** | 13 /** |
14 * Subclass that renders the path by converting to screen-space trapezoids plus | 14 * Subclass that renders the path by converting to screen-space trapezoids plus |
15 * extra 1-pixel geometry for AA. | 15 * extra 1-pixel geometry for AA. |
16 */ | 16 */ |
17 class SK_API GrTessellatingPathRenderer : public GrPathRenderer { | 17 class SK_API GrTessellatingPathRenderer : public GrPathRenderer { |
18 public: | 18 public: |
19 GrTessellatingPathRenderer(); | 19 GrTessellatingPathRenderer(); |
20 | 20 |
21 private: | 21 private: |
22 bool onCanDrawPath(const CanDrawPathArgs& ) const override; | 22 bool onCanDrawPath(const CanDrawPathArgs& ) const override; |
23 | 23 |
24 StencilSupport onGetStencilSupport(const SkPath&) const override { | 24 StencilSupport onGetStencilSupport(const GrShape&) const override { |
25 return GrPathRenderer::kNoSupport_StencilSupport; | 25 return GrPathRenderer::kNoSupport_StencilSupport; |
26 } | 26 } |
27 | 27 |
28 bool onDrawPath(const DrawPathArgs&) override; | 28 bool onDrawPath(const DrawPathArgs&) override; |
29 | 29 |
30 typedef GrPathRenderer INHERITED; | 30 typedef GrPathRenderer INHERITED; |
31 }; | 31 }; |
32 | 32 |
33 #endif | 33 #endif |
OLD | NEW |