5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_SURFACE_METAL_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_SURFACE_METAL_IMPELLER_H_
8#include "flutter/fml/macros.h"
9#include "flutter/shell/gpu/gpu_surface_metal_delegate.h"
10#include "flutter/shell/platform/darwin/ios/ios_surface.h"
25 const std::shared_ptr<IOSContext>& context);
32 const std::shared_ptr<impeller::Context> impeller_context_;
33 bool is_valid_ =
false;
36 bool IsValid()
const override;
39 void UpdateStorageSizeIfNecessary()
override;
42 std::unique_ptr<Surface> CreateGPUSurface(
GrDirectContext* gr_context)
override;
60 bool AllowsDrawingWhenGpuDisabled()
const override;
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
struct flutter::ImageMetaData __attribute__((packed))
void * GPUCAMetalLayerHandle