OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrClipMaskManager_DEFINED | 8 #ifndef GrClipMaskManager_DEFINED |
9 #define GrClipMaskManager_DEFINED | 9 #define GrClipMaskManager_DEFINED |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if (kStencil_ClipMaskType == fCurrClipMaskType) { | 63 if (kStencil_ClipMaskType == fCurrClipMaskType) { |
64 fCurrClipMaskType = kNone_ClipMaskType; | 64 fCurrClipMaskType = kNone_ClipMaskType; |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 GrContext* getContext() { | 68 GrContext* getContext() { |
69 return fAACache.getContext(); | 69 return fAACache.getContext(); |
70 } | 70 } |
71 | 71 |
72 void setGpu(GrGpu* gpu); | 72 void setGpu(GrGpu* gpu); |
| 73 |
| 74 void adjustPathStencilParams(GrStencilSettings* settings); |
73 private: | 75 private: |
74 /** | 76 /** |
75 * Informs the helper function adjustStencilParams() about how the stencil | 77 * Informs the helper function adjustStencilParams() about how the stencil |
76 * buffer clip is being used. | 78 * buffer clip is being used. |
77 */ | 79 */ |
78 enum StencilClipMode { | 80 enum StencilClipMode { |
79 // Draw to the clip bit of the stencil buffer | 81 // Draw to the clip bit of the stencil buffer |
80 kModifyClip_StencilClipMode, | 82 kModifyClip_StencilClipMode, |
81 // Clip against the existing representation of the clip in the high bit | 83 // Clip against the existing representation of the clip in the high bit |
82 // of the stencil buffer. | 84 // of the stencil buffer. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 * clipping. | 161 * clipping. |
160 */ | 162 */ |
161 void adjustStencilParams(GrStencilSettings* settings, | 163 void adjustStencilParams(GrStencilSettings* settings, |
162 StencilClipMode mode, | 164 StencilClipMode mode, |
163 int stencilBitCnt); | 165 int stencilBitCnt); |
164 | 166 |
165 typedef SkNoncopyable INHERITED; | 167 typedef SkNoncopyable INHERITED; |
166 }; | 168 }; |
167 | 169 |
168 #endif // GrClipMaskManager_DEFINED | 170 #endif // GrClipMaskManager_DEFINED |
OLD | NEW |