Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
flutter::EngineLayer Class Reference

#include <engine_layer.h>

Inheritance diagram for flutter::EngineLayer:
flutter::RefCountedDartWrappable< EngineLayer > fml::RefCountedThreadSafe< EngineLayer > tonic::DartWrappable fml::internal::RefCountedThreadSafeBase

Public Member Functions

 ~EngineLayer () override
 
void dispose ()
 
std::shared_ptr< flutter::ContainerLayerLayer () const
 
- Public Member Functions inherited from flutter::RefCountedDartWrappable< EngineLayer >
virtual void RetainDartWrappableReference () const override
 
virtual void ReleaseDartWrappableReference () const override
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< EngineLayer >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 
- Public Member Functions inherited from tonic::DartWrappable
 DartWrappable ()
 
virtual const DartWrapperInfoGetDartWrapperInfo () const =0
 
virtual void RetainDartWrappableReference () const =0
 
virtual void ReleaseDartWrappableReference () const =0
 
Dart_Handle CreateDartWrapper (DartState *dart_state)
 
void AssociateWithDartWrapper (Dart_Handle wrappable)
 
void ClearDartWrapper ()
 
Dart_WeakPersistentHandle dart_wrapper () const
 

Static Public Member Functions

static void MakeRetained (Dart_Handle dart_handle, const std::shared_ptr< flutter::ContainerLayer > &layer)
 

Additional Inherited Members

- Public Types inherited from tonic::DartWrappable
enum  DartNativeFields { kPeerIndex , kNumberOfNativeFields }
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< EngineLayer >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 
- Protected Member Functions inherited from tonic::DartWrappable
virtual ~DartWrappable ()
 
- Static Protected Member Functions inherited from tonic::DartWrappable
static Dart_PersistentHandle GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info)
 

Detailed Description

Definition at line 15 of file engine_layer.h.

Constructor & Destructor Documentation

◆ ~EngineLayer()

flutter::EngineLayer::~EngineLayer ( )
overridedefault

Member Function Documentation

◆ dispose()

void flutter::EngineLayer::dispose ( )

Definition at line 24 of file engine_layer.cc.

24 {
25 layer_.reset();
27}

◆ Layer()

std::shared_ptr< flutter::ContainerLayer > flutter::EngineLayer::Layer ( ) const
inline

Definition at line 30 of file engine_layer.h.

30{ return layer_; }

◆ MakeRetained()

static void flutter::EngineLayer::MakeRetained ( Dart_Handle  dart_handle,
const std::shared_ptr< flutter::ContainerLayer > &  layer 
)
inlinestatic

Definition at line 21 of file engine_layer.h.

23 {
24 auto engine_layer = fml::MakeRefCounted<EngineLayer>(layer);
25 engine_layer->AssociateWithDartWrapper(dart_handle);
26 }

The documentation for this class was generated from the following files: