9 #include "flutter/fml/logging.h"
10 #import "flutter/shell/platform/darwin/common/InternalFlutterSwiftCommon/InternalFlutterSwiftCommon.h"
24 if ([layer isKindOfClass:[CAMetalLayer
class]]) {
25 return std::make_unique<IOSSurfaceMetalImpeller>(
26 static_cast<CAMetalLayer*
>(layer),
34 FML_CHECK(
false) <<
"Expected a Metal-backed layer for iOS rendering.";
39 : ios_context_(std::move(ios_context)) {
40 FML_DCHECK(ios_context_);
IOSSurface(std::shared_ptr< IOSContext > ios_context)
std::shared_ptr< IOSContext > GetContext() const
static std::unique_ptr< IOSSurface > Create(const std::shared_ptr< IOSContext > &context, CALayer *layer)
#define METAL_IOS_VERSION_BASELINE