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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // alpha mask simultaneously. If so and the element is a path a compatible p
ath renderer is | 156 // alpha mask simultaneously. If so and the element is a path a compatible p
ath renderer is |
157 // also returned. | 157 // also returned. |
158 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*
, GrPathRenderer**); | 158 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*
, GrPathRenderer**); |
159 | 159 |
160 void mergeMask(GrTexture* dstMask, | 160 void mergeMask(GrTexture* dstMask, |
161 GrTexture* srcMask, | 161 GrTexture* srcMask, |
162 SkRegion::Op op, | 162 SkRegion::Op op, |
163 const SkIRect& dstBound, | 163 const SkIRect& dstBound, |
164 const SkIRect& srcBound); | 164 const SkIRect& srcBound); |
165 | 165 |
166 void getTemp(int width, int height, GrAutoScratchTexture* temp); | 166 GrTexture* createTempMask(int width, int height); |
167 | 167 |
168 void setupCache(const SkClipStack& clip, | 168 void setupCache(const SkClipStack& clip, |
169 const SkIRect& bounds); | 169 const SkIRect& bounds); |
170 | 170 |
171 /** | 171 /** |
172 * Called prior to return control back the GrGpu in setupClipping. It | 172 * Called prior to return control back the GrGpu in setupClipping. It |
173 * updates the GrGpu with stencil settings that account stencil-based | 173 * updates the GrGpu with stencil settings that account stencil-based |
174 * clipping. | 174 * clipping. |
175 */ | 175 */ |
176 void setGpuStencil(); | 176 void setGpuStencil(); |
177 | 177 |
178 /** | 178 /** |
179 * Adjusts the stencil settings to account for interaction with stencil | 179 * Adjusts the stencil settings to account for interaction with stencil |
180 * clipping. | 180 * clipping. |
181 */ | 181 */ |
182 void adjustStencilParams(GrStencilSettings* settings, | 182 void adjustStencilParams(GrStencilSettings* settings, |
183 StencilClipMode mode, | 183 StencilClipMode mode, |
184 int stencilBitCnt); | 184 int stencilBitCnt); |
185 | 185 |
186 typedef SkNoncopyable INHERITED; | 186 typedef SkNoncopyable INHERITED; |
187 }; | 187 }; |
188 | 188 |
189 #endif // GrClipMaskManager_DEFINED | 189 #endif // GrClipMaskManager_DEFINED |
OLD | NEW |