Replaced TextureCacheEntry with GrTexture* and a back pointer to GrResourceEntry (in GrTexture)
http://codereview.appspot.com/6460089/
git-svn-id: http://skia.googlecode.com/svn/trunk@5122 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 076097d..d708e0a 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -225,7 +225,7 @@
* Search for an entry with the same Key. If found, "lock" it and return it.
* If not found, return null.
*/
- GrResourceEntry* findAndLock(const GrResourceKey&, LockType style);
+ GrResource* findAndLock(const GrResourceKey&, LockType style);
/**
* Create a new cache entry, based on the provided key and resource, and
@@ -234,7 +234,7 @@
* Ownership of the resource is transferred to the resource cache,
* which will unref() it when it is purged or deleted.
*/
- GrResourceEntry* createAndLock(const GrResourceKey&, GrResource*);
+ void createAndLock(const GrResourceKey&, GrResource*);
/**
* Create a new cache entry, based on the provided key and resource.