#include <ios_surface.h>
Definition at line 25 of file ios_surface.h.
◆ ~IOSSurface()
flutter::IOSSurface::~IOSSurface |
( |
| ) |
|
|
virtualdefault |
◆ IOSSurface()
flutter::IOSSurface::IOSSurface |
( |
std::shared_ptr< IOSContext > |
ios_context | ) |
|
|
explicitprotected |
Definition at line 49 of file ios_surface.mm.
50 : ios_context_(std::move(ios_context)) {
51 FML_DCHECK(ios_context_);
◆ Create()
std::unique_ptr< IOSSurface > flutter::IOSSurface::Create |
( |
std::shared_ptr< IOSContext > |
context, |
|
|
const fml::scoped_nsobject< CALayer > & |
layer |
|
) |
| |
|
static |
Definition at line 16 of file ios_surface.mm.
22 if ([layer.get() isKindOfClass:[CAMetalLayer
class]]) {
23 switch (context->GetBackend()) {
26 return std::make_unique<IOSSurfaceMetalSkia>(
27 fml::scoped_nsobject<CAMetalLayer>((CAMetalLayer*)layer.get()),
31 FML_LOG(FATAL) <<
"Impeller opt-out unavailable.";
36 return std::make_unique<IOSSurfaceMetalImpeller>(
37 fml::scoped_nsobject<CAMetalLayer>((CAMetalLayer*)layer.get()),
44 return std::make_unique<IOSSurfaceSoftware>(layer,
References flutter::kImpeller, flutter::kSkia, and METAL_IOS_VERSION_BASELINE.
Referenced by flutter::PlatformViewIOS::attachView().
◆ CreateGPUSurface()
virtual std::unique_ptr<Surface> flutter::IOSSurface::CreateGPUSurface |
( |
GrDirectContext * |
gr_context = nullptr | ) |
|
|
pure virtual |
◆ GetContext()
std::shared_ptr< IOSContext > flutter::IOSSurface::GetContext |
( |
| ) |
const |
◆ IsValid()
virtual bool flutter::IOSSurface::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ UpdateStorageSizeIfNecessary()
virtual void flutter::IOSSurface::UpdateStorageSizeIfNecessary |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: