Flutter Engine
flutter::EmbedderExternalTextureGL Class Reference

#include <embedder_external_texture_gl.h>

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

Public Types

using ExternalTextureCallback = std::function< sk_sp< SkImage >(int64_t texture_identifier, GrDirectContext *, const SkISize &)>
 

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 ()
 
int64_t Id ()
 

Detailed Description

Definition at line 15 of file embedder_external_texture_gl.h.

Member Typedef Documentation

◆ ExternalTextureCallback

using flutter::EmbedderExternalTextureGL::ExternalTextureCallback = std::function<sk_sp<SkImage>(int64_t texture_identifier, GrDirectContext*, const SkISize&)>

Definition at line 20 of file embedder_external_texture_gl.h.

Constructor & Destructor Documentation

◆ EmbedderExternalTextureGL()

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

Definition at line 11 of file embedder_external_texture_gl.cc.

References FML_DCHECK, flutter::Texture::Id(), and ~EmbedderExternalTextureGL().

14  : Texture(texture_identifier), external_texture_callback_(callback) {
15  FML_DCHECK(external_texture_callback_);
16 }
#define FML_DCHECK(condition)
Definition: logging.h:86
Texture(int64_t id)
Definition: texture.cc:9

◆ ~EmbedderExternalTextureGL()

flutter::EmbedderExternalTextureGL::~EmbedderExternalTextureGL ( )
default

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