diff options
author | Timothy Liang <timliang@google.com> | 2018-07-02 16:03:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-02 20:57:57 +0000 |
commit | e886e80e8b204460a78dabf5c671b7f4146d71f7 (patch) | |
tree | bec7b602ec3855000e8d64fe8e3e6025ca7578d1 /src/gpu/mtl/GrMtlUtil.h | |
parent | 389abd50fe74c54a11430f5457d2278cda391132 (diff) |
implemented wrapped backend texture/rendertarget/textureRT for Metal gpu backend
Bug: skia:
Change-Id: I5d84f9f4340023301bf119731d0b544649be7ab0
Reviewed-on: https://skia-review.googlesource.com/137892
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Timothy Liang <timliang@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlUtil.h')
-rw-r--r-- | src/gpu/mtl/GrMtlUtil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.h b/src/gpu/mtl/GrMtlUtil.h index 656b65cd6d..932ebec2b5 100644 --- a/src/gpu/mtl/GrMtlUtil.h +++ b/src/gpu/mtl/GrMtlUtil.h @@ -29,4 +29,9 @@ GrPixelConfig GrMTLFormatToPixelConfig(MTLPixelFormat format); */ id<MTLTexture> GrGetMTLTexture(const void* mtlTexture, GrWrapOwnership); +/** + * Returns a const void* to whatever the id object is pointing to. Always uses __bridge. + */ +const void* GrGetPtrFromId(id idObject); + #endif |