Flutter Linux Embedder
fl_texture.cc File Reference

Go to the source code of this file.

Functions

static void fl_texture_default_init (FlTextureInterface *self)
 
void fl_texture_set_id (FlTexture *self, int64_t id)
 
G_MODULE_EXPORT int64_t fl_texture_get_id (FlTexture *self)
 

Function Documentation

◆ fl_texture_default_init()

static void fl_texture_default_init ( FlTextureInterface *  self)
static

Definition at line 13 of file fl_texture.cc.

13 {}

◆ fl_texture_get_id()

G_MODULE_EXPORT int64_t fl_texture_get_id ( FlTexture *  texture)

fl_texture_get_id: @texture: a #FlTexture.

Get the ID for this texture, which can be passed to Flutter code to refer to this texture.

Returns: a texture ID.

Definition at line 20 of file fl_texture.cc.

20  {
21  g_return_val_if_fail(FL_IS_TEXTURE(self), -1);
22  return FL_TEXTURE_GET_IFACE(self)->get_id(self);
23 }

Referenced by add_mock_texture_to_registrar(), mark_texture_frame_available(), TEST(), and unregister_texture().

◆ fl_texture_set_id()

void fl_texture_set_id ( FlTexture *  texture,
int64_t  id 
)

fl_texture_set_id: @texture: an #FlTexture. @id: a texture ID.

Set the ID for a texture.

Definition at line 15 of file fl_texture.cc.

15  {
16  g_return_if_fail(FL_IS_TEXTURE(self));
17  FL_TEXTURE_GET_IFACE(self)->set_id(self, id);
18 }

Referenced by register_texture(), and TEST().