#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)) {
52}
#define FML_DCHECK(condition)
◆ Create()
Definition at line 16 of file ios_surface.mm.
17 {
20
22 if ([layer.
get() isKindOfClass:[CAMetalLayer
class]]) {
23 switch (context->GetBackend()) {
25#if !SLIMPELLER
26 return std::make_unique<IOSSurfaceMetalSkia>(
28 std::move(context)
29 );
30#else
32 return nullptr;
33#endif
34 break;
36 return std::make_unique<IOSSurfaceMetalImpeller>(
38 std::move(context)
39 );
40 }
41 }
42 }
43
44 return std::make_unique<IOSSurfaceSoftware>(layer,
45 std::move(context)
46 );
47}
T get() const __attribute((ns_returns_not_retained))
#define FML_LOG(severity)
#define METAL_IOS_VERSION_BASELINE
◆ 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: