7#include "flutter/impeller/entity/mtl/entity_shaders.h"
19 .use_sdfs = settings.impeller_use_sdfs,
25 const Settings& settings,
26 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch)
28 init:SettingsToFlags(settings)
29 gpuDisabledSyncSwitch:is_gpu_disabled_sync_switch]) {
30 if (darwin_context_metal_impeller_.context) {
31 aiks_context_ = std::make_shared<impeller::AiksContext>(
36IOSContextMetalImpeller::~IOSContextMetalImpeller() =
default;
39 return IOSRenderingBackend::kImpeller;
43std::shared_ptr<impeller::Context> IOSContextMetalImpeller::GetImpellerContext()
const {
44 return darwin_context_metal_impeller_.context;
48std::shared_ptr<impeller::AiksContext> IOSContextMetalImpeller::GetAiksContext()
const {
53std::unique_ptr<Texture> IOSContextMetalImpeller::CreateExternalTexture(
55 NSObject<FlutterTexture>*
texture) {
56 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.