Begin moving locking out of GrResourceCache

http://codereview.appspot.com/6498064/



git-svn-id: http://skia.googlecode.com/svn/trunk@5354 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 52e7c5d..00e62ea 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -260,17 +260,6 @@
     void createAndLock(const GrResourceKey&, GrResource*);
 
     /**
-     *  Create a new cache entry, based on the provided key and resource.
-     *
-     *  Ownership of the resource is transferred to the resource cache,
-     *  which will unref() it when it is purged or deleted.
-     *
-     *  Currently this entry point is only intended for textures "detached"
-     *  from an AutoScratchTexture object.
-     */
-    void attach(const GrResourceKey& key, GrResource* resource);
-
-    /**
      * Determines if the cache contains an entry matching a key. If a matching
      * entry exists but was detached then it will not be found.
      */
@@ -354,10 +343,7 @@
     // prevents recursive purging
     bool fPurging;
 
-    GrResourceEntry* create(const GrResourceKey& key,
-                            GrResource* resource,
-                            bool lock,
-                            bool clientReattach);
+    void create(const GrResourceKey& key, GrResource* resource);
 
 #if GR_DEBUG
     static size_t countBytes(const SkTDLinkedList<GrResourceEntry>& list);