5#include "flutter/shell/platform/linux/testing/mock_texture_registrar.h"
14 FlTextureRegistrarInterface* iface);
17 FlMockTextureRegistrar,
18 fl_mock_texture_registrar,
20 G_IMPLEMENT_INTERFACE(fl_texture_registrar_get_type(),
25 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
26 if (
self->texture !=
nullptr) {
35 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
36 if (
self->texture !=
nullptr &&
45 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
55 FlMockTextureRegistrar*
self = FL_MOCK_TEXTURE_REGISTRAR(registrar);
60 g_clear_object(&
self->texture);
66 FlTextureRegistrarInterface* iface) {
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);
80 FlMockTextureRegistrarClass* klass) {
87 return FL_MOCK_TEXTURE_REGISTRAR(
88 g_object_new(fl_mock_texture_registrar_get_type(),
nullptr));
96 FlMockTextureRegistrar*
self) {
97 return self->frame_available;
G_MODULE_EXPORT int64_t fl_texture_get_id(FlTexture *self)
static gboolean register_texture(FlTextureRegistrar *registrar, FlTexture *texture)
FlTexture * fl_mock_texture_registrar_get_texture(FlMockTextureRegistrar *self)
static gboolean mark_texture_frame_available(FlTextureRegistrar *registrar, FlTexture *texture)
static void fl_mock_texture_registrar_dispose(GObject *object)
static void fl_mock_texture_registrar_class_init(FlMockTextureRegistrarClass *klass)
static void fl_mock_texture_registrar_iface_init(FlTextureRegistrarInterface *iface)
static void fl_mock_texture_registrar_init(FlMockTextureRegistrar *self)
static FlTexture * lookup_texture(FlTextureRegistrar *registrar, int64_t texture_id)
FlMockTextureRegistrar * fl_mock_texture_registrar_new()
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)) static gboolean register_texture(FlTextureRegistrar *registrar
static gboolean unregister_texture(FlTextureRegistrar *registrar, FlTexture *texture)
gboolean fl_mock_texture_registrar_get_frame_available(FlMockTextureRegistrar *self)