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

#include <embedder_external_texture_gl.h>

Inheritance diagram for flutter::EmbedderExternalTextureGL:
flutter::Texture flutter::ContextListener

Public Types

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

Public Member Functions

 EmbedderExternalTextureGL (int64_t texture_identifier, const ExternalTextureCallback &callback)
 
 ~EmbedderExternalTextureGL ()
 
- 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 15 of file embedder_external_texture_gl.h.

Member Typedef Documentation

◆ ExternalTextureCallback

Definition at line 17 of file embedder_external_texture_gl.h.

Constructor & Destructor Documentation

◆ EmbedderExternalTextureGL()

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

Definition at line 23 of file embedder_external_texture_gl.cc.

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

◆ ~EmbedderExternalTextureGL()

flutter::EmbedderExternalTextureGL::~EmbedderExternalTextureGL ( )
default

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