Make not-reusing-scratch-textures only apply to texture uploads
https://codereview.chromium.org/53133002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12037 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index fa93987..015c801 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -121,10 +121,11 @@
// 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.
+ // is returned. 'willUpload' is set when the alpha mask needs to be uploaded from the CPU.
bool getMaskTexture(int32_t clipStackGenID,
const SkIRect& clipSpaceIBounds,
- GrTexture** result);
+ GrTexture** result,
+ bool willUpload);
bool useSWOnlyPath(const GrReducedClip::ElementList& elements);