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

Unified Diff: src/gpu/GrGpuResource.cpp

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 | « src/gpu/GrGpuObject.cpp ('k') | src/gpu/GrPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpuResource.cpp
diff --git a/src/gpu/GrGpuObject.cpp b/src/gpu/GrGpuResource.cpp
similarity index 78%
rename from src/gpu/GrGpuObject.cpp
rename to src/gpu/GrGpuResource.cpp
index 4a72a50c499689b8ae48f871e58afb68161a45fd..8c2dc4508009a10fa181fd477636c35743b94a1d 100644
--- a/src/gpu/GrGpuObject.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -7,10 +7,10 @@
*/
-#include "GrGpuObject.h"
+#include "GrGpuResource.h"
#include "GrGpu.h"
-GrGpuObject::GrGpuObject(GrGpu* gpu, bool isWrapped)
+GrGpuResource::GrGpuResource(GrGpu* gpu, bool isWrapped)
: fRefCnt(1)
, fCacheEntry(NULL)
, fUniqueID(CreateUniqueID()) {
@@ -23,13 +23,13 @@ GrGpuObject::GrGpuObject(GrGpu* gpu, bool isWrapped)
fGpu->insertObject(this);
}
-GrGpuObject::~GrGpuObject() {
+GrGpuResource::~GrGpuResource() {
SkASSERT(0 == fRefCnt);
// subclass should have released this.
SkASSERT(this->wasDestroyed());
}
-void GrGpuObject::release() {
+void GrGpuResource::release() {
if (NULL != fGpu) {
this->onRelease();
fGpu->removeObject(this);
@@ -37,7 +37,7 @@ void GrGpuObject::release() {
}
}
-void GrGpuObject::abandon() {
+void GrGpuResource::abandon() {
if (NULL != fGpu) {
this->onAbandon();
fGpu->removeObject(this);
@@ -45,7 +45,7 @@ void GrGpuObject::abandon() {
}
}
-const GrContext* GrGpuObject::getContext() const {
+const GrContext* GrGpuResource::getContext() const {
if (NULL != fGpu) {
return fGpu->getContext();
} else {
@@ -53,7 +53,7 @@ const GrContext* GrGpuObject::getContext() const {
}
}
-GrContext* GrGpuObject::getContext() {
+GrContext* GrGpuResource::getContext() {
if (NULL != fGpu) {
return fGpu->getContext();
} else {
@@ -61,7 +61,7 @@ GrContext* GrGpuObject::getContext() {
}
}
-uint32_t GrGpuObject::CreateUniqueID() {
+uint32_t GrGpuResource::CreateUniqueID() {
static int32_t gUniqueID = SK_InvalidUniqueID;
uint32_t id;
do {
« no previous file with comments | « src/gpu/GrGpuObject.cpp ('k') | src/gpu/GrPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698