Flutter iOS Embedder
flutter::IOSSurfaceMetalSkia Class Referencefinal

#include <ios_surface_metal_skia.h>

Inheritance diagram for flutter::IOSSurfaceMetalSkia:
flutter::IOSSurface

Public Member Functions

 IOSSurfaceMetalSkia (const fml::scoped_nsobject< CAMetalLayer > &layer, std::shared_ptr< IOSContext > context)
 
 ~IOSSurfaceMetalSkia ()
 
- Public Member Functions inherited from flutter::IOSSurface
std::shared_ptr< IOSContextGetContext () const
 
virtual ~IOSSurface ()
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::IOSSurface
static std::unique_ptr< IOSSurfaceCreate (std::shared_ptr< IOSContext > context, const fml::scoped_nsobject< CALayer > &layer)
 
- Protected Member Functions inherited from flutter::IOSSurface
 IOSSurface (std::shared_ptr< IOSContext > ios_context)
 

Detailed Description

Definition at line 17 of file ios_surface_metal_skia.h.

Constructor & Destructor Documentation

◆ IOSSurfaceMetalSkia()

flutter::IOSSurfaceMetalSkia::IOSSurfaceMetalSkia ( const fml::scoped_nsobject< CAMetalLayer > &  layer,
std::shared_ptr< IOSContext context 
)

Definition at line 21 of file ios_surface_metal_skia.mm.

23  : IOSSurface(std::move(context)),
24  GPUSurfaceMetalDelegate(MTLRenderTargetType::kCAMetalLayer),
25  layer_(layer) {
26  is_valid_ = layer_;
27  auto metal_context = CastToMetalContext(GetContext());
28  auto darwin_context = metal_context->GetDarwinContext().get();
29  command_queue_ = darwin_context.commandQueue;
30  device_ = darwin_context.device;
31 }

References flutter::CastToMetalContext(), and flutter::IOSSurface::GetContext().

◆ ~IOSSurfaceMetalSkia()

flutter::IOSSurfaceMetalSkia::~IOSSurfaceMetalSkia ( )
default

The documentation for this class was generated from the following files:
flutter::CastToMetalContext
static IOSContextMetalSkia * CastToMetalContext(const std::shared_ptr< IOSContext > &context)
Definition: ios_surface_metal_skia.mm:17
flutter::IOSSurface::IOSSurface
IOSSurface(std::shared_ptr< IOSContext > ios_context)
Definition: ios_surface.mm:50
flutter::IOSSurface::GetContext
std::shared_ptr< IOSContext > GetContext() const
Definition: ios_surface.mm:57