diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.h b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.h index 9c6193c21f..48661f7d18 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.h +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.h @@ -34,8 +34,6 @@ class IOSContextMetalSkia final : public IOSContext { private: fml::scoped_nsobject darwin_context_metal_; - fml::scoped_nsprotocol> main_command_queue_; - fml::CFRef texture_cache_; // |IOSContext| sk_sp CreateResourceContext() override; diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.mm b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.mm index 5476f45611..fb4ef48762 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_context_metal_skia.mm @@ -15,25 +15,6 @@ namespace flutter { IOSContextMetalSkia::IOSContextMetalSkia(MsaaSampleCount msaa_samples) : IOSContext(msaa_samples) { darwin_context_metal_ = fml::scoped_nsobject{ [[FlutterDarwinContextMetal alloc] initWithDefaultMTLDevice]}; - - if (!darwin_context_metal_) { - return; - } - - main_command_queue_.reset([darwin_context_metal_.get().commandQueue retain]); - - CVMetalTextureCacheRef texture_cache_raw = NULL; - auto cv_return = CVMetalTextureCacheCreate(kCFAllocatorDefault, // allocator - NULL, // cache attributes (NULL default) - darwin_context_metal_.get().device, // metal device - NULL, // texture attributes (NULL default) - &texture_cache_raw // [out] cache - ); - if (cv_return != kCVReturnSuccess) { - FML_DLOG(ERROR) << "Could not create Metal texture cache."; - return; - } - texture_cache_.Reset(texture_cache_raw); } IOSContextMetalSkia::~IOSContextMetalSkia() = default;