diff --git a/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm b/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm index 580443d409501..097a16076a0d6 100644 --- a/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm +++ b/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm @@ -277,14 +277,14 @@ @implementation FlutterDarwinExternalTextureSkImageWrapper return nullptr; #else // SLIMPELLER GrMtlTextureInfo ySkiaTextureInfo; - ySkiaTextureInfo.fTexture = sk_cfp{(__bridge_retained const void*)yTex}; + ySkiaTextureInfo.fTexture.retain((__bridge GrMTLHandle)yTex); GrBackendTexture skiaBackendTextures[2]; skiaBackendTextures[0] = GrBackendTextures::MakeMtl(width, height, skgpu::Mipmapped::kNo, ySkiaTextureInfo); GrMtlTextureInfo uvSkiaTextureInfo; - uvSkiaTextureInfo.fTexture = sk_cfp{(__bridge_retained const void*)uvTex}; + uvSkiaTextureInfo.fTexture.retain((__bridge GrMTLHandle)uvTex); skiaBackendTextures[1] = GrBackendTextures::MakeMtl(width, height, skgpu::Mipmapped::kNo, uvSkiaTextureInfo); @@ -308,7 +308,7 @@ GrYUVABackendTextures yuvaBackendTextures(yuvaInfo, skiaBackendTextures, #else // SLIMPELLER GrMtlTextureInfo skiaTextureInfo; - skiaTextureInfo.fTexture = sk_cfp{(__bridge_retained const void*)rgbaTex}; + skiaTextureInfo.fTexture.retain((__bridge GrMTLHandle)rgbaTex); GrBackendTexture skiaBackendTexture = GrBackendTextures::MakeMtl(width, height, skgpu::Mipmapped ::kNo, skiaTextureInfo);