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)
19IOSContextMetalImpeller::~IOSContextMetalImpeller() =
default;
22 return IOSRenderingBackend::kImpeller;
39std::shared_ptr<impeller::Context> IOSContextMetalImpeller::GetImpellerContext()
const {
40 return darwin_context_metal_impeller_.
get().context;
44std::unique_ptr<GLContextResult> IOSContextMetalImpeller::MakeCurrent() {
46 return std::make_unique<GLContextDefaultResult>(
true);
50std::unique_ptr<Texture> IOSContextMetalImpeller::CreateExternalTexture(
53 return std::make_unique<IOSExternalTextureMetal>(
IOSContextMetalImpeller(const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)