| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Draws a filled clip path into the target alpha mask | 134 // Draws a filled clip path into the target alpha mask |
| 135 bool drawFilledPath(GrTexture* target, GrPathRenderer* pathRenderer, bool is
AA); | 135 bool drawFilledPath(GrTexture* target, GrPathRenderer* pathRenderer, bool is
AA); |
| 136 | 136 |
| 137 // Draws a clip element into the target alpha mask. The caller should have a
lready setup the | 137 // Draws a clip element into the target alpha mask. The caller should have a
lready setup the |
| 138 // desired blend operation. | 138 // desired blend operation. |
| 139 bool drawElement(GrTexture* target, const SkClipStack::Element* element); | 139 bool drawElement(GrTexture* target, const SkClipStack::Element* element); |
| 140 | 140 |
| 141 // Determines whether it is possible to draw the element to both the stencil
buffer and the | 141 // Determines whether it is possible to draw the element to both the stencil
buffer and the |
| 142 // alpha mask simultaneously. If so and the element is a path a compatible p
ath renderer is | 142 // alpha mask simultaneously. If so and the element is a path a compatible p
ath renderer is |
| 143 // also returned. | 143 // also returned. |
| 144 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*
, | 144 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*
, |
| 145 GrPathRenderer::AutoClearPath* pr); | 145 GrPathRenderer::AutoClearPath* pr); |
| 146 | 146 |
| 147 void mergeMask(GrTexture* dstMask, | 147 void mergeMask(GrTexture* dstMask, |
| 148 GrTexture* srcMask, | 148 GrTexture* srcMask, |
| 149 SkRegion::Op op, | 149 SkRegion::Op op, |
| 150 const SkIRect& dstBound, | 150 const SkIRect& dstBound, |
| 151 const SkIRect& srcBound); | 151 const SkIRect& srcBound); |
| 152 | 152 |
| 153 void getTemp(int width, int height, GrAutoScratchTexture* temp); | 153 void getTemp(int width, int height, GrAutoScratchTexture* temp); |
| 154 | 154 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 167 * clipping. | 167 * clipping. |
| 168 */ | 168 */ |
| 169 void adjustStencilParams(GrStencilSettings* settings, | 169 void adjustStencilParams(GrStencilSettings* settings, |
| 170 StencilClipMode mode, | 170 StencilClipMode mode, |
| 171 int stencilBitCnt); | 171 int stencilBitCnt); |
| 172 | 172 |
| 173 typedef SkNoncopyable INHERITED; | 173 typedef SkNoncopyable INHERITED; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // GrClipMaskManager_DEFINED | 176 #endif // GrClipMaskManager_DEFINED |
| OLD | NEW |