diff options
author | Timothy Liang <timliang@google.com> | 2018-07-11 13:27:21 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-11 18:05:28 +0000 |
commit | ff19c8f5e7156a016b16180552e12119c823e6a9 (patch) | |
tree | c206b1153ebb9aec2d63aa2e52a8ca72c1c19268 /src/gpu/mtl/GrMtlUtil.h | |
parent | f3dc33e4c6f44782cff5dc314da3398c2652fd56 (diff) |
implemented uploading intial texture data for metal gpu backend
Bug: skia:
Change-Id: I76c820beb9b29b230a2f7d82fe8b6b141eee43d7
Reviewed-on: https://skia-review.googlesource.com/139163
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.h b/src/gpu/mtl/GrMtlUtil.h index 932ebec2b5..a184bfa421 100644 --- a/src/gpu/mtl/GrMtlUtil.h +++ b/src/gpu/mtl/GrMtlUtil.h @@ -34,4 +34,10 @@ id<MTLTexture> GrGetMTLTexture(const void* mtlTexture, GrWrapOwnership); */ const void* GrGetPtrFromId(id idObject); +/** + * Returns a MTLTextureDescriptor which describes the MTLTexture. Useful when creating a duplicate + * MTLTexture without the same storage allocation. + */ +MTLTextureDescriptor* GrGetMTLTextureDescriptor(id<MTLTexture> mtlTexture); + #endif |