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 #ifndef GrClipMaskManager_DEFINED | 7 #ifndef GrClipMaskManager_DEFINED |
8 #define GrClipMaskManager_DEFINED | 8 #define GrClipMaskManager_DEFINED |
9 | 9 |
10 #include "GrClipMaskCache.h" | 10 #include "GrClipMaskCache.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 */ | 50 */ |
51 bool setupClipping(GrPipelineBuilder*, | 51 bool setupClipping(GrPipelineBuilder*, |
52 GrPipelineBuilder::AutoRestoreEffects*, | 52 GrPipelineBuilder::AutoRestoreEffects*, |
53 GrPipelineBuilder::AutoRestoreStencil*, | 53 GrPipelineBuilder::AutoRestoreStencil*, |
54 GrScissorState*, | 54 GrScissorState*, |
55 const GrClipData* clipDataIn, | 55 const GrClipData* clipDataIn, |
56 const SkRect* devBounds); | 56 const SkRect* devBounds); |
57 | 57 |
58 /** | 58 /** |
59 * Purge resources to free up memory. TODO: This class shouldn't hold any lo
ng lived refs | 59 * Purge resources to free up memory. TODO: This class shouldn't hold any lo
ng lived refs |
60 * which will allow ResourceCache2 to automatically purge anything this clas
s has created. | 60 * which will allow Resourcecache to automatically purge anything this class
has created. |
61 */ | 61 */ |
62 void purgeResources(); | 62 void purgeResources(); |
63 | 63 |
64 bool isClipInStencil() const { | 64 bool isClipInStencil() const { |
65 return kStencil_ClipMaskType == fCurrClipMaskType; | 65 return kStencil_ClipMaskType == fCurrClipMaskType; |
66 } | 66 } |
67 | 67 |
68 bool isClipInAlpha() const { | 68 bool isClipInAlpha() const { |
69 return kAlpha_ClipMaskType == fCurrClipMaskType; | 69 return kAlpha_ClipMaskType == fCurrClipMaskType; |
70 } | 70 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 kAlpha_ClipMaskType, | 191 kAlpha_ClipMaskType, |
192 } fCurrClipMaskType; | 192 } fCurrClipMaskType; |
193 | 193 |
194 GrClipMaskCache fAACache; // cache for the AA path | 194 GrClipMaskCache fAACache; // cache for the AA path |
195 GrClipTarget* fClipTarget; | 195 GrClipTarget* fClipTarget; |
196 StencilClipMode fClipMode; | 196 StencilClipMode fClipMode; |
197 | 197 |
198 typedef SkNoncopyable INHERITED; | 198 typedef SkNoncopyable INHERITED; |
199 }; | 199 }; |
200 #endif // GrClipMaskManager_DEFINED | 200 #endif // GrClipMaskManager_DEFINED |
OLD | NEW |