Index: include/gpu/GrTypesPriv.h |
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h |
index 9a96521a3671defa1305c78398afb28119a2131e..18bc6449aad110f0f51a450d9cb26fd44413bebc 100644 |
--- a/include/gpu/GrTypesPriv.h |
+++ b/include/gpu/GrTypesPriv.h |
@@ -464,4 +464,14 @@ enum GrAccessPattern { |
#define GrCapsDebugf(caps, ...) |
#endif |
+/** |
+ * Specifies if the holder owns the backend, OpenGL or Vulkan, object. |
+ */ |
+enum class GrBackendObjectOwnership : bool { |
+ /** Holder does not destroy the backend object. */ |
+ kBorrowed = false, |
+ /** Holder destroys the backend object. */ |
+ kOwned = true |
+}; |
+ |
#endif |