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

Unified Diff: include/gpu/GrGpuResource.h

Issue 418143004: Rename GrGpuObject to GrGpuResource (Closed) Base URL: https://skia.googlesource.com/skia.git@compact
Patch Set: Fix indents Created 6 years, 5 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 | « include/gpu/GrGpuObject.h ('k') | include/gpu/GrSurface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuObject.h b/include/gpu/GrGpuResource.h
similarity index 93%
rename from include/gpu/GrGpuObject.h
rename to include/gpu/GrGpuResource.h
index 51cac1c1b9c478f6d3380dd04ea8aacf6799546f..127f64b903027732436e2898c9c832eca9ec2867 100644
--- a/include/gpu/GrGpuObject.h
+++ b/include/gpu/GrGpuResource.h
@@ -5,8 +5,8 @@
* found in the LICENSE file.
*/
-#ifndef GrGpuObject_DEFINED
-#define GrGpuObject_DEFINED
+#ifndef GrGpuResource_DEFINED
+#define GrGpuResource_DEFINED
#include "SkInstCnt.h"
#include "SkTInternalLList.h"
@@ -18,9 +18,9 @@ class GrContext;
/**
* Base class for objects that can be kept in the GrResourceCache.
*/
-class GrGpuObject : public SkNoncopyable {
+class GrGpuResource : public SkNoncopyable {
public:
- SK_DECLARE_INST_COUNT_ROOT(GrGpuObject)
+ SK_DECLARE_INST_COUNT_ROOT(GrGpuResource)
// These method signatures are written to mirror SkRefCnt. However, we don't require
// thread safety as GrCacheable objects are not intended to cross thread boundaries.
@@ -89,8 +89,8 @@ public:
uint32_t getUniqueID() const { return fUniqueID; }
protected:
- GrGpuObject(GrGpu*, bool isWrapped);
- virtual ~GrGpuObject();
+ GrGpuResource(GrGpu*, bool isWrapped);
+ virtual ~GrGpuResource();
bool isInCache() const { return NULL != fCacheEntry; }
@@ -119,10 +119,10 @@ private:
static uint32_t CreateUniqueID();
// We're in an internal doubly linked list
- SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrGpuObject);
+ SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrGpuResource);
GrGpu* fGpu; // not reffed. The GrGpu can be deleted while there
- // are still live GrGpuObjects. It will call
+ // are still live GrGpuResources. It will call
// release() on all such objects in its destructor.
enum Flags {
/**
« no previous file with comments | « include/gpu/GrGpuObject.h ('k') | include/gpu/GrSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698