Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
flutter::EmbedderExternalTextureMetal Class Reference

#include <embedder_external_texture_metal.h>

Inheritance diagram for flutter::EmbedderExternalTextureMetal:
flutter::Texture flutter::ContextListener

Public Types

using ExternalTextureCallback = std::function< std::unique_ptr< FlutterMetalExternalTexture >(int64_t, size_t, size_t)>
 

Public Member Functions

 EmbedderExternalTextureMetal (int64_t texture_identifier, const ExternalTextureCallback &callback)
 
 ~EmbedderExternalTextureMetal ()
 
- Public Member Functions inherited from flutter::Texture
 Texture (int64_t id)
 
virtual ~Texture ()
 
virtual void Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling)=0
 
virtual void MarkNewFrameAvailable ()=0
 
virtual void OnTextureUnregistered ()=0
 
int64_t Id ()
 
- Public Member Functions inherited from flutter::ContextListener
 ContextListener ()
 
 ~ContextListener ()
 
virtual void OnGrContextCreated ()=0
 
virtual void OnGrContextDestroyed ()=0
 

Detailed Description

Definition at line 16 of file embedder_external_texture_metal.h.

Member Typedef Documentation

◆ ExternalTextureCallback

Definition at line 18 of file embedder_external_texture_metal.h.

Constructor & Destructor Documentation

◆ EmbedderExternalTextureMetal()

flutter::EmbedderExternalTextureMetal::EmbedderExternalTextureMetal ( int64_t  texture_identifier,
const ExternalTextureCallback callback 
)

Definition at line 26 of file embedder_external_texture_metal.mm.

28 : Texture(texture_identifier), external_texture_callback_(callback) {
29 FML_DCHECK(external_texture_callback_);
30}
Texture(int64_t id)
Definition: texture.cc:13
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ ~EmbedderExternalTextureMetal()

flutter::EmbedderExternalTextureMetal::~EmbedderExternalTextureMetal ( )
default

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