| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 */ | 73 */ |
| 74 void purgeResources(); | 74 void purgeResources(); |
| 75 | 75 |
| 76 bool isClipInStencil() const { | 76 bool isClipInStencil() const { |
| 77 return kStencil_ClipMaskType == fCurrClipMaskType; | 77 return kStencil_ClipMaskType == fCurrClipMaskType; |
| 78 } | 78 } |
| 79 bool isClipInAlpha() const { | 79 bool isClipInAlpha() const { |
| 80 return kAlpha_ClipMaskType == fCurrClipMaskType; | 80 return kAlpha_ClipMaskType == fCurrClipMaskType; |
| 81 } | 81 } |
| 82 | 82 |
| 83 void invalidateStencilMask() { | |
| 84 if (kStencil_ClipMaskType == fCurrClipMaskType) { | |
| 85 fCurrClipMaskType = kNone_ClipMaskType; | |
| 86 } | |
| 87 } | |
| 88 | |
| 89 GrContext* getContext() { | 83 GrContext* getContext() { |
| 90 return fAACache.getContext(); | 84 return fAACache.getContext(); |
| 91 } | 85 } |
| 92 | 86 |
| 93 void setClipTarget(GrClipTarget*); | 87 void setClipTarget(GrClipTarget*); |
| 94 | 88 |
| 95 void adjustPathStencilParams(GrStencilSettings*); | 89 void adjustPathStencilParams(GrStencilSettings*); |
| 96 | 90 |
| 97 private: | 91 private: |
| 98 /** | 92 /** |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } fCurrClipMaskType; | 189 } fCurrClipMaskType; |
| 196 | 190 |
| 197 GrClipMaskCache fAACache; // cache for the AA path | 191 GrClipMaskCache fAACache; // cache for the AA path |
| 198 GrClipTarget* fClipTarget; | 192 GrClipTarget* fClipTarget; |
| 199 StencilClipMode fClipMode; | 193 StencilClipMode fClipMode; |
| 200 | 194 |
| 201 typedef SkNoncopyable INHERITED; | 195 typedef SkNoncopyable INHERITED; |
| 202 }; | 196 }; |
| 203 | 197 |
| 204 #endif // GrClipMaskManager_DEFINED | 198 #endif // GrClipMaskManager_DEFINED |
| OLD | NEW |