GrTexture can now create its own cache key
http://codereview.appspot.com/6269047/
git-svn-id: http://skia.googlecode.com/svn/trunk@4148 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index f86fcd2..b83e8ec 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -41,6 +41,16 @@
kHashMask = kHashCount - 1
};
+ enum TypeBits {
+ // resource types
+ kTexture_TypeBit = 0x01,
+ kStencilBuffer_TypeBit = 0x02,
+
+ // Derived classes may add additional bits
+ kDummy_TypeBit,
+ kLastPublic_TypeBit = kDummy_TypeBit-1,
+ };
+
GrResourceKey(uint32_t p0, uint32_t p1, uint32_t p2, uint32_t p3) {
fP[0] = p0;
fP[1] = p1;