Flutter Engine
The Flutter Engine
|
#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
#include <gmodule.h>
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include "flutter/shell/platform/linux/fl_pixel_buffer_texture_private.h"
#include "flutter/shell/platform/linux/fl_texture_gl_private.h"
#include "flutter/shell/platform/linux/fl_texture_private.h"
#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
Go to the source code of this file.
Functions | |
G_DECLARE_FINAL_TYPE (FlTextureRegistrarImpl, fl_texture_registrar_impl, FL, TEXTURE_REGISTRAR_IMPL, GObject) struct _FlTextureRegistrarImpl | |
static void | fl_texture_registrar_impl_iface_init (FlTextureRegistrarInterface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlTextureRegistrarImpl, fl_texture_registrar_impl, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_texture_registrar_get_type(), fl_texture_registrar_impl_iface_init)) static void fl_texture_registrar_default_init(FlTextureRegistrarInterface *iface) | |
static void | engine_weak_notify_cb (gpointer user_data, GObject *where_the_object_was) |
static void | fl_texture_registrar_impl_dispose (GObject *object) |
static void | fl_texture_registrar_impl_class_init (FlTextureRegistrarImplClass *klass) |
static gboolean | register_texture (FlTextureRegistrar *registrar, FlTexture *texture) |
static FlTexture * | lookup_texture (FlTextureRegistrar *registrar, int64_t texture_id) |
static gboolean | mark_texture_frame_available (FlTextureRegistrar *registrar, FlTexture *texture) |
static gboolean | unregister_texture (FlTextureRegistrar *registrar, FlTexture *texture) |
static void | fl_texture_registrar_impl_init (FlTextureRegistrarImpl *self) |
G_MODULE_EXPORT gboolean | fl_texture_registrar_register_texture (FlTextureRegistrar *self, FlTexture *texture) |
FlTexture * | fl_texture_registrar_lookup_texture (FlTextureRegistrar *self, int64_t texture_id) |
G_MODULE_EXPORT gboolean | fl_texture_registrar_mark_texture_frame_available (FlTextureRegistrar *self, FlTexture *texture) |
G_MODULE_EXPORT gboolean | fl_texture_registrar_unregister_texture (FlTextureRegistrar *self, FlTexture *texture) |
FlTextureRegistrar * | fl_texture_registrar_new (FlEngine *engine) |
|
static |
Definition at line 57 of file fl_texture_registrar.cc.
|
static |
Definition at line 87 of file fl_texture_registrar.cc.
|
static |
Definition at line 71 of file fl_texture_registrar.cc.
|
static |
Definition at line 166 of file fl_texture_registrar.cc.
|
static |
Definition at line 174 of file fl_texture_registrar.cc.
FlTexture * fl_texture_registrar_lookup_texture | ( | FlTextureRegistrar * | registrar, |
int64_t | texture_id | ||
) |
fl_texture_registrar_lookup_texture: @registrar: an #FlTextureRegistrar. @texture_id: ID of texture.
Looks for the texture with the given ID.
Returns: an #FlTexture or NULL if no texture with this ID.
Definition at line 191 of file fl_texture_registrar.cc.
G_MODULE_EXPORT gboolean fl_texture_registrar_mark_texture_frame_available | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
fl_texture_registrar_mark_texture_frame_available: @registrar: an #FlTextureRegistrar. @texture: the texture that has a frame available.
Notifies the flutter engine that the texture object has updated and needs to be rerendered.
Returns: TRUE on success.
Definition at line 198 of file fl_texture_registrar.cc.
FlTextureRegistrar * fl_texture_registrar_new | ( | FlEngine * | engine | ) |
fl_texture_registrar_new: @engine: an #FlEngine.
Creates a new #FlTextureRegistrar.
Returns: a new #FlTextureRegistrar.
Definition at line 216 of file fl_texture_registrar.cc.
G_MODULE_EXPORT gboolean fl_texture_registrar_register_texture | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
FlTextureRegistrar:
#FlTextureRegistrar is used when registering textures.
Flutter Framework accesses your texture by the related unique texture ID. To draw your texture in Dart, you should add Texture widget in your widget tree with the same texture ID. Use platform channels to send this unique texture ID to the Dart side. fl_texture_registrar_register_texture: @registrar: an #FlTextureRegistrar. @texture: an #FlTexture for registration.
Registers a texture.
Returns: TRUE on success.
Definition at line 182 of file fl_texture_registrar.cc.
G_MODULE_EXPORT gboolean fl_texture_registrar_unregister_texture | ( | FlTextureRegistrar * | registrar, |
FlTexture * | texture | ||
) |
fl_texture_registrar_unregister_texture: @registrar: an #FlTextureRegistrar. @texture: the texture being unregistered.
Unregisters an existing texture object.
Returns: TRUE on success.
Definition at line 207 of file fl_texture_registrar.cc.
G_DECLARE_FINAL_TYPE | ( | FlTextureRegistrarImpl | , |
fl_texture_registrar_impl | , | ||
FL | , | ||
TEXTURE_REGISTRAR_IMPL | , | ||
GObject | |||
) |
Definition at line 16 of file fl_texture_registrar.cc.
G_DEFINE_TYPE_WITH_CODE | ( | FlTextureRegistrarImpl | , |
fl_texture_registrar_impl | , | ||
G_TYPE_OBJECT | , | ||
G_IMPLEMENT_INTERFACE(fl_texture_registrar_get_type(), fl_texture_registrar_impl_iface_init) | |||
) |
Definition at line 47 of file fl_texture_registrar.cc.
|
static |
Definition at line 123 of file fl_texture_registrar.cc.
|
static |
Definition at line 133 of file fl_texture_registrar.cc.
|
static |
Definition at line 92 of file fl_texture_registrar.cc.
|
static |
Definition at line 145 of file fl_texture_registrar.cc.