#include "flutter/shell/platform/linux/testing/mock_texture_registrar.h"
Go to the source code of this file.
◆ fl_mock_texture_registrar_class_init()
static void fl_mock_texture_registrar_class_init |
( |
FlMockTextureRegistrarClass * |
klass | ) |
|
|
static |
◆ fl_mock_texture_registrar_dispose()
static void fl_mock_texture_registrar_dispose |
( |
GObject * |
object | ) |
|
|
static |
Definition at line 73 of file mock_texture_registrar.cc.
73 {
74 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(
object);
75 g_clear_object(&
self->texture);
76 G_OBJECT_CLASS(fl_mock_texture_registrar_parent_class)->dispose(object);
77}
◆ fl_mock_texture_registrar_get_frame_available()
gboolean fl_mock_texture_registrar_get_frame_available |
( |
FlMockTextureRegistrar * |
self | ) |
|
◆ fl_mock_texture_registrar_get_texture()
FlTexture * fl_mock_texture_registrar_get_texture |
( |
FlMockTextureRegistrar * |
self | ) |
|
◆ fl_mock_texture_registrar_iface_init()
static void fl_mock_texture_registrar_iface_init |
( |
FlTextureRegistrarInterface * |
iface | ) |
|
|
static |
Definition at line 65 of file mock_texture_registrar.cc.
66 {
71}
static gboolean register_texture(FlTextureRegistrar *registrar, FlTexture *texture)
static gboolean mark_texture_frame_available(FlTextureRegistrar *registrar, FlTexture *texture)
static FlTexture * lookup_texture(FlTextureRegistrar *registrar, int64_t texture_id)
static gboolean unregister_texture(FlTextureRegistrar *registrar, FlTexture *texture)
◆ fl_mock_texture_registrar_init()
static void fl_mock_texture_registrar_init |
( |
FlMockTextureRegistrar * |
self | ) |
|
|
static |
◆ fl_mock_texture_registrar_new()
FlMockTextureRegistrar * fl_mock_texture_registrar_new |
( |
| ) |
|
Definition at line 86 of file mock_texture_registrar.cc.
86 {
87 return FL_MOCK_TEXTURE_REGISTRAR(
88 g_object_new(fl_mock_texture_registrar_get_type(), nullptr));
89}
◆ G_DEFINE_TYPE_WITH_CODE()
G_DEFINE_TYPE_WITH_CODE |
( |
FlMockTextureRegistrar |
, |
|
|
fl_mock_texture_registrar |
, |
|
|
G_TYPE_OBJECT |
, |
|
|
G_IMPLEMENT_INTERFACE(fl_texture_registrar_get_type(), fl_mock_texture_registrar_iface_init) |
|
|
) |
| |
◆ if()
◆ lookup_texture()
static FlTexture * lookup_texture |
( |
FlTextureRegistrar * |
registrar, |
|
|
int64_t |
texture_id |
|
) |
| |
|
static |
Definition at line 33 of file mock_texture_registrar.cc.
34 {
35 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
36 if (
self->texture !=
nullptr &&
39 }
40 return nullptr;
41}
G_MODULE_EXPORT int64_t fl_texture_get_id(FlTexture *self)
◆ mark_texture_frame_available()
static gboolean mark_texture_frame_available |
( |
FlTextureRegistrar * |
registrar, |
|
|
FlTexture * |
texture |
|
) |
| |
|
static |
◆ unregister_texture()
static gboolean unregister_texture |
( |
FlTextureRegistrar * |
registrar, |
|
|
FlTexture * |
texture |
|
) |
| |
|
static |
Definition at line 53 of file mock_texture_registrar.cc.
54 {
55 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
58 }
59
60 g_clear_object(&
self->texture);
61
63}
◆ texture
◆ TRUE