Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: src/gpu/GrResourceCache.h

Issue 921453002: Rename GrResourceCache2 to GrResourceCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpuResource.cpp ('k') | src/gpu/GrResourceCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrResourceCache.h
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache.h
similarity index 96%
rename from src/gpu/GrResourceCache2.h
rename to src/gpu/GrResourceCache.h
index e844f11e6a17be6ccd99bd8db63919dd7e0c7908..522641ba37c3ad0ff846951632b012c28ec65f7d 100644
--- a/src/gpu/GrResourceCache2.h
+++ b/src/gpu/GrResourceCache.h
@@ -6,8 +6,8 @@
* found in the LICENSE file.
*/
-#ifndef GrResourceCache2_DEFINED
-#define GrResourceCache2_DEFINED
+#ifndef GrResourceCache_DEFINED
+#define GrResourceCache_DEFINED
#include "GrGpuResource.h"
#include "GrGpuResourceCacheAccess.h"
@@ -36,10 +36,10 @@ class SkString;
* If a resource has neither key type then it will be deleted as soon as the last reference to it
* is dropped. If a key has both keys the content key takes precedence.
*/
-class GrResourceCache2 {
+class GrResourceCache {
public:
- GrResourceCache2();
- ~GrResourceCache2();
+ GrResourceCache();
+ ~GrResourceCache();
/** Used to access functionality needed by GrGpuResource for lifetime management. */
class ResourceAccess;
@@ -254,9 +254,9 @@ private:
};
-class GrResourceCache2::ResourceAccess {
+class GrResourceCache::ResourceAccess {
private:
- ResourceAccess(GrResourceCache2* cache) : fCache(cache) { }
+ ResourceAccess(GrResourceCache* cache) : fCache(cache) { }
ResourceAccess(const ResourceAccess& that) : fCache(that.fCache) { }
ResourceAccess& operator=(const ResourceAccess&); // unimpl
@@ -315,13 +315,13 @@ private:
const ResourceAccess* operator&() const;
ResourceAccess* operator&();
- GrResourceCache2* fCache;
+ GrResourceCache* fCache;
friend class GrGpuResource; // To access all the proxy inline methods.
- friend class GrResourceCache2; // To create this type.
+ friend class GrResourceCache; // To create this type.
};
-inline GrResourceCache2::ResourceAccess GrResourceCache2::resourceAccess() {
+inline GrResourceCache::ResourceAccess GrResourceCache::resourceAccess() {
return ResourceAccess(this);
}
« no previous file with comments | « src/gpu/GrGpuResource.cpp ('k') | src/gpu/GrResourceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698