7#include "flutter/impeller/entity/mtl/entity_shaders.h"
24 const Settings& settings,
25 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch)
27 init:SettingsToFlags(settings)
28 gpuDisabledSyncSwitch:is_gpu_disabled_sync_switch]) {
29 if (darwin_context_metal_impeller_.context) {
30 aiks_context_ = std::make_shared<impeller::AiksContext>(
35IOSContextMetalImpeller::~IOSContextMetalImpeller() =
default;
38 return IOSRenderingBackend::kImpeller;
42std::shared_ptr<impeller::Context> IOSContextMetalImpeller::GetImpellerContext()
const {
43 return darwin_context_metal_impeller_.context;
47std::shared_ptr<impeller::AiksContext> IOSContextMetalImpeller::GetAiksContext()
const {
52std::unique_ptr<Texture> IOSContextMetalImpeller::CreateExternalTexture(
54 NSObject<FlutterTexture>*
texture) {
55 return std::make_unique<IOSExternalTextureMetal>([darwin_context_metal_impeller_
IOSContextMetalImpeller(const Settings &settings, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)
static std::shared_ptr< TypographerContext > Make()
bool antialiased_lines
When turned on DrawLine will use the experimental antialiased path.