Flutter Engine
flutter::Codec Class Referenceabstract

#include <codec.h>

Inheritance diagram for flutter::Codec:
flutter::RefCountedDartWrappable< Codec > fml::RefCountedThreadSafe< Codec > tonic::DartWrappable fml::internal::RefCountedThreadSafeBase flutter::MultiFrameCodec flutter::SingleFrameCodec

Public Member Functions

virtual int frameCount () const =0
 
virtual int repetitionCount () const =0
 
virtual Dart_Handle getNextFrame (Dart_Handle callback_handle)=0
 
void dispose ()
 
- Public Member Functions inherited from flutter::RefCountedDartWrappable< Codec >
virtual void RetainDartWrappableReference () const override
 
virtual void ReleaseDartWrappableReference () const override
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< Codec >
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 size_t GetAllocationSize () const
 
Dart_Handle CreateDartWrapper (DartState *dart_state)
 
void AssociateWithDartWrapper (Dart_Handle wrappable)
 
void ClearDartWrapper ()
 
Dart_WeakPersistentHandle dart_wrapper () const
 

Static Public Member Functions

static void RegisterNatives (tonic::DartLibraryNatives *natives)
 

Additional Inherited Members

- Public Types inherited from tonic::DartWrappable
enum  DartNativeFields {
  kPeerIndex,
  kWrapperInfoIndex,
  kNumberOfNativeFields
}
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< Codec >
 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 25 of file codec.h.

Member Function Documentation

◆ dispose()

void flutter::Codec::dispose ( )

Definition at line 29 of file codec.cc.

29  {
31 }

◆ frameCount()

virtual int flutter::Codec::frameCount ( ) const
pure virtual

◆ getNextFrame()

virtual Dart_Handle flutter::Codec::getNextFrame ( Dart_Handle  callback_handle)
pure virtual

◆ RegisterNatives()

void flutter::Codec::RegisterNatives ( tonic::DartLibraryNatives natives)
static

Definition at line 33 of file codec.cc.

References DART_REGISTER_NATIVE, FOR_EACH_BINDING, and tonic::DartLibraryNatives::Register().

Referenced by flutter::DartUI::InitForGlobal().

33  {
35 }
void Register(std::initializer_list< Entry > entries)
#define FOR_EACH_BINDING(V)
Definition: codec.cc:21
#define DART_REGISTER_NATIVE(CLASS, METHOD)

◆ repetitionCount()

virtual int flutter::Codec::repetitionCount ( ) const
pure virtual

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