Index: src/gpu/GrGpuResource.cpp |
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp |
index 7a19c25e46dcf5806db47955b7f22818d75f95a5..a0a72785d9c74c0385e52d1b08da7beeac4eca99 100644 |
--- a/src/gpu/GrGpuResource.cpp |
+++ b/src/gpu/GrGpuResource.cpp |
@@ -28,6 +28,9 @@ GrGpuResource::GrGpuResource(GrGpu* gpu, bool isWrapped) |
} else { |
fFlags = 0; |
} |
+} |
+ |
+void GrGpuResource::registerWithCache() { |
get_resource_cache2(fGpu)->insertResource(this); |
} |
@@ -37,7 +40,7 @@ GrGpuResource::~GrGpuResource() { |
SkASSERT(this->wasDestroyed()); |
} |
-void GrGpuResource::release() { |
+void GrGpuResource::release() { |
if (NULL != fGpu) { |
this->onRelease(); |
get_resource_cache2(fGpu)->removeResource(this); |