| Index: src/gpu/GrClipMaskManager.h
|
| diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
|
| index 260d708fd8ad8091ef5d26b3460ce7492b2924a3..c3a21fd8a2b1e9d6771ebde48bbdaa2731b28b85 100644
|
| --- a/src/gpu/GrClipMaskManager.h
|
| +++ b/src/gpu/GrClipMaskManager.h
|
| @@ -130,13 +130,16 @@ private:
|
| const GrReducedClip::ElementList& elements,
|
| const SkIRect& clipSpaceIBounds);
|
|
|
| - // Gets a texture to use for the clip mask. If true is returned then a cached mask was found
|
| - // that already contains the rasterization of the clip stack, otherwise an uninitialized texture
|
| - // is returned. 'willUpload' is set when the alpha mask needs to be uploaded from the CPU.
|
| - bool getMaskTexture(int32_t elementsGenID,
|
| - const SkIRect& clipSpaceIBounds,
|
| - GrTexture** result,
|
| - bool willUpload);
|
| + // Returns the cached mask texture if it matches the elementsGenID and the clipSpaceIBounds.
|
| + // Returns NULL if not found.
|
| + GrTexture* getCachedMaskTexture(int32_t elementsGenID, const SkIRect& clipSpaceIBounds);
|
| +
|
| +
|
| + // Handles allocation (if needed) of a clip alpha-mask texture for both the sw-upload
|
| + // or gpu-rendered cases.
|
| + GrTexture* allocMaskTexture(int32_t elementsGenID,
|
| + const SkIRect& clipSpaceIBounds,
|
| + bool willUpload);
|
|
|
| bool useSWOnlyPath(const GrReducedClip::ElementList& elements);
|
|
|
|
|