9 #import "flutter/shell/platform/darwin/common/InternalFlutterSwiftCommon/InternalFlutterSwiftCommon.h"
24 if ([layer isKindOfClass:[CAMetalLayer
class]]) {
25 switch (context->GetBackend()) {
27 [FlutterLogger logFatal:
@"Impeller opt-out unavailable."];
30 return std::make_unique<IOSSurfaceMetalImpeller>(
31 static_cast<CAMetalLayer*
>(layer),
37 return std::make_unique<IOSSurfaceNoop>(std::move(context));
41 : ios_context_(std::move(ios_context)) {
42 FML_DCHECK(ios_context_);
IOSSurface(std::shared_ptr< IOSContext > ios_context)
static std::unique_ptr< IOSSurface > Create(std::shared_ptr< IOSContext > context, CALayer *layer)
std::shared_ptr< IOSContext > GetContext() const
#define METAL_IOS_VERSION_BASELINE