5#import "flutter/shell/platform/darwin/ios/ios_context_metal_impeller.h"
6#include "flutter/impeller/entity/mtl/entity_shaders.h"
7#import "flutter/shell/platform/darwin/ios/ios_external_texture_metal.h"
14 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch)
18IOSContextMetalImpeller::~IOSContextMetalImpeller() =
default;
21 return IOSRenderingBackend::kImpeller;
38std::shared_ptr<impeller::Context> IOSContextMetalImpeller::GetImpellerContext()
const {
39 return darwin_context_metal_impeller_.
get().context;
43std::unique_ptr<GLContextResult> IOSContextMetalImpeller::MakeCurrent() {
45 return std::make_unique<GLContextDefaultResult>(
true);
49std::unique_ptr<Texture> IOSContextMetalImpeller::CreateExternalTexture(
52 return std::make_unique<IOSExternalTextureMetal>(
IOSContextMetalImpeller(const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)