Index: src/gpu/GrGpuResourceCacheAccess.h |
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h |
index 4f38fc600212a5d483751f3b7374497cffc17b68..611d43b9a12d8c38acc6dd5a830b48b421af9894 100644 |
--- a/src/gpu/GrGpuResourceCacheAccess.h |
+++ b/src/gpu/GrGpuResourceCacheAccess.h |
@@ -33,7 +33,19 @@ private: |
/** |
* Is the resource object wrapping an externally allocated GPU resource? |
*/ |
- bool isWrapped() const { return GrGpuResource::kWrapped_LifeCycle == fResource->fLifeCycle; } |
+ bool isExternal() const { return fResource->isExternal(); } |
+ |
+ /** |
+ * Is the resource object wrapping an externally allocated GPU resource that Skia has not taken |
+ * ownership of. |
+ */ |
+ bool isBorrowed() const { return GrGpuResource::kBorrowed_LifeCycle == fResource->fLifeCycle; } |
+ |
+ /** |
+ * Is the resource object wrapping an externally allocated GPU resource that Skia has taken |
+ * ownership of. |
+ */ |
+ bool isAdopted() const { return GrGpuResource::kAdopted_LifeCycle == fResource->fLifeCycle; } |
/** |
* Called by the cache to delete the resource under normal circumstances. |