We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742eaf8 commit d0f2bebCopy full SHA for d0f2beb
testing/test_metal_context.mm
@@ -14,7 +14,7 @@
14
namespace flutter {
15
16
TestMetalContext::TestMetalContext() {
17
- auto device = fml::scoped_nsprotocol{[MTLCreateSystemDefaultDevice() retain]};
+ auto device = fml::scoped_nsprotocol{MTLCreateSystemDefaultDevice()};
18
if (!device) {
19
FML_LOG(ERROR) << "Could not acquire Metal device.";
20
return;
@@ -82,8 +82,7 @@
82
}
83
84
id<MTLDevice> device = (__bridge id<MTLDevice>)GetMetalDevice();
85
- sk_cfp<void*> texture =
86
- sk_cfp<void*>{[[device newTextureWithDescriptor:texture_descriptor.get()] retain]};
+ sk_cfp<void*> texture = sk_cfp<void*>{[device newTextureWithDescriptor:texture_descriptor.get()]};
87
88
if (!texture) {
89
FML_CHECK(false) << "Could not create texture from texture descriptor.";
0 commit comments