OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrDefaultPathRenderer_DEFINED | 8 #ifndef GrDefaultPathRenderer_DEFINED |
9 #define GrDefaultPathRenderer_DEFINED | 9 #define GrDefaultPathRenderer_DEFINED |
10 | 10 |
11 #include "GrPathRenderer.h" | 11 #include "GrPathRenderer.h" |
12 #include "SkTemplates.h" | 12 #include "SkTemplates.h" |
13 | 13 |
14 /** | 14 /** |
15 * Subclass that renders the path using the stencil buffer to resolve fill rule
s | 15 * Subclass that renders the path using the stencil buffer to resolve fill rule
s |
16 * (e.g. winding, even-odd) | 16 * (e.g. winding, even-odd) |
17 */ | 17 */ |
18 class GR_API GrDefaultPathRenderer : public GrPathRenderer { | 18 class SK_API GrDefaultPathRenderer : public GrPathRenderer { |
19 public: | 19 public: |
20 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor
t); | 20 GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSuppor
t); |
21 | 21 |
22 virtual bool canDrawPath(const SkPath&, | 22 virtual bool canDrawPath(const SkPath&, |
23 const SkStrokeRec&, | 23 const SkStrokeRec&, |
24 const GrDrawTarget*, | 24 const GrDrawTarget*, |
25 bool antiAlias) const SK_OVERRIDE; | 25 bool antiAlias) const SK_OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 | 28 |
(...skipping 24 matching lines...) Expand all Loading... |
53 int* indexCnt, | 53 int* indexCnt, |
54 GrDrawTarget::AutoReleaseGeometry*); | 54 GrDrawTarget::AutoReleaseGeometry*); |
55 | 55 |
56 bool fSeparateStencil; | 56 bool fSeparateStencil; |
57 bool fStencilWrapOps; | 57 bool fStencilWrapOps; |
58 | 58 |
59 typedef GrPathRenderer INHERITED; | 59 typedef GrPathRenderer INHERITED; |
60 }; | 60 }; |
61 | 61 |
62 #endif | 62 #endif |
OLD | NEW |