aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlUtil.h
diff options
context:
space:
mode:
authorGravatar Timothy Liang <timliang@google.com>2018-07-13 13:24:05 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-13 18:38:14 +0000
commit36848f6b30ddaca461c98e13b9976b2c449ca547 (patch)
treeed1626f12d90a0f8f154c2b89fb938f64c8ed499 /src/gpu/mtl/GrMtlUtil.h
parent81d151103faca621cfe62c9dfbec842ec9f337c4 (diff)
implemented metal gpu backend texture upload testing
Bug: skia: Change-Id: Ia3af58a0710f7f9792b37682a3cc45dd14282b71 Reviewed-on: https://skia-review.googlesource.com/140248 Commit-Queue: Timothy Liang <timliang@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlUtil.h')
-rw-r--r--src/gpu/mtl/GrMtlUtil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.h b/src/gpu/mtl/GrMtlUtil.h
index a184bfa421..b3a7829531 100644
--- a/src/gpu/mtl/GrMtlUtil.h
+++ b/src/gpu/mtl/GrMtlUtil.h
@@ -35,6 +35,11 @@ id<MTLTexture> GrGetMTLTexture(const void* mtlTexture, GrWrapOwnership);
const void* GrGetPtrFromId(id idObject);
/**
+ * Returns a const void* to whatever the id object is pointing to. Always uses __bridge_retained.
+ */
+const void* GrReleaseId(id idObject);
+
+/**
* Returns a MTLTextureDescriptor which describes the MTLTexture. Useful when creating a duplicate
* MTLTexture without the same storage allocation.
*/