aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlRenderTarget.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/mtl/GrMtlRenderTarget.mm')
-rw-r--r--src/gpu/mtl/GrMtlRenderTarget.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlRenderTarget.mm b/src/gpu/mtl/GrMtlRenderTarget.mm
index 12b507b801..c8060cf88c 100644
--- a/src/gpu/mtl/GrMtlRenderTarget.mm
+++ b/src/gpu/mtl/GrMtlRenderTarget.mm
@@ -63,10 +63,12 @@ GrMtlGpu* GrMtlRenderTarget::getMtlGpu() const {
return static_cast<GrMtlGpu*>(this->getGpu());
}
+#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS
GrBackendObject GrMtlRenderTarget::getRenderTargetHandle() const {
void* voidRT = (__bridge_retained void*)fRenderTexture;
return (GrBackendObject)voidRT;
}
+#endif
void GrMtlRenderTarget::onAbandon() {
fRenderTexture = nil;