Index: include/gpu/GrTexture.h |
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h |
index d02382981d02fc9c348f082377c33f9e691812d8..28c3fd5cdec8a09e4929421fd656f6aed25a8afd 100644 |
--- a/include/gpu/GrTexture.h |
+++ b/include/gpu/GrTexture.h |
@@ -41,6 +41,23 @@ |
* changed externally to Skia. |
*/ |
virtual void textureParamsModified() = 0; |
+ |
+ /** |
+ * Informational texture flags. This will be removed soon. |
+ */ |
+ enum FlagBits { |
+ kFirstBit = (kLastPublic_GrTextureFlagBit << 1), |
+ |
+ /** |
+ * This texture should be returned to the texture cache when |
+ * it is no longer reffed |
+ */ |
+ kReturnToCache_FlagBit = kFirstBit, |
+ }; |
+ |
+ void resetFlag(GrTextureFlags flags) { |
+ fDesc.fFlags = fDesc.fFlags & ~flags; |
+ } |
#ifdef SK_DEBUG |
void validate() const { |