6 #include "flutter/impeller/entity/mtl/entity_shaders.h"
14 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch)
15 : darwin_context_metal_impeller_(fml::scoped_nsobject<FlutterDarwinContextMetalImpeller>{
16 [[FlutterDarwinContextMetalImpeller alloc] init:is_gpu_disabled_sync_switch]}) {}
33 sk_sp<GrDirectContext> IOSContextMetalImpeller::CreateResourceContext() {
38 std::shared_ptr<impeller::Context> IOSContextMetalImpeller::GetImpellerContext()
const {
39 return darwin_context_metal_impeller_.get().context;
43 std::unique_ptr<GLContextResult> IOSContextMetalImpeller::MakeCurrent() {
45 return std::make_unique<GLContextDefaultResult>(
true);
49 std::unique_ptr<Texture> IOSContextMetalImpeller::CreateExternalTexture(
51 fml::scoped_nsobject<NSObject<FlutterTexture>> texture) {
52 return std::make_unique<IOSExternalTextureMetal>(
53 fml::scoped_nsobject<FlutterDarwinExternalTextureMetal>{[darwin_context_metal_impeller_