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 GrPathRendererChain_DEFINED | 8 #ifndef GrPathRendererChain_DEFINED |
9 #define GrPathRendererChain_DEFINED | 9 #define GrPathRendererChain_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 class GrPathRendererChain : public SkRefCnt { | 28 class GrPathRendererChain : public SkRefCnt { |
29 public: | 29 public: |
30 // See comments in GrPathRenderer.h | 30 // See comments in GrPathRenderer.h |
31 enum StencilSupport { | 31 enum StencilSupport { |
32 kNoSupport_StencilSupport, | 32 kNoSupport_StencilSupport, |
33 kStencilOnly_StencilSupport, | 33 kStencilOnly_StencilSupport, |
34 kNoRestriction_StencilSupport, | 34 kNoRestriction_StencilSupport, |
35 }; | 35 }; |
36 | 36 |
37 SK_DECLARE_INST_COUNT(GrPathRendererChain) | |
38 | |
39 GrPathRendererChain(GrContext* context); | 37 GrPathRendererChain(GrContext* context); |
40 | 38 |
41 ~GrPathRendererChain(); | 39 ~GrPathRendererChain(); |
42 | 40 |
43 // takes a ref and unrefs in destructor | 41 // takes a ref and unrefs in destructor |
44 GrPathRenderer* addPathRenderer(GrPathRenderer* pr); | 42 GrPathRenderer* addPathRenderer(GrPathRenderer* pr); |
45 | 43 |
46 /** Documents how the caller plans to use a GrPathRenderer to draw a path. I
t affects the PR | 44 /** Documents how the caller plans to use a GrPathRenderer to draw a path. I
t affects the PR |
47 returned by getPathRenderer */ | 45 returned by getPathRenderer */ |
48 enum DrawType { | 46 enum DrawType { |
(...skipping 25 matching lines...) Expand all Loading... |
74 kPreAllocCount = 8, | 72 kPreAllocCount = 8, |
75 }; | 73 }; |
76 bool fInit; | 74 bool fInit; |
77 GrContext* fOwner; | 75 GrContext* fOwner; |
78 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; | 76 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; |
79 | 77 |
80 typedef SkRefCnt INHERITED; | 78 typedef SkRefCnt INHERITED; |
81 }; | 79 }; |
82 | 80 |
83 #endif | 81 #endif |
OLD | NEW |