23 if ([layer isKindOfClass:[CAMetalLayer
class]]) {
24 switch (context->GetBackend()) {
26 FML_LOG(FATAL) <<
"Impeller opt-out unavailable.";
29 return std::make_unique<IOSSurfaceMetalImpeller>(
30 static_cast<CAMetalLayer*
>(layer),
36 return std::make_unique<IOSSurfaceNoop>(std::move(context));
40 : ios_context_(std::move(ios_context)) {
41 FML_DCHECK(ios_context_);