10 #include "flutter/shell/platform/linux/testing/fl_test.h"
11 #include "gtest/gtest.h"
27 struct _FlTestTexture {
28 FlTextureGL parent_instance;
31 G_DEFINE_TYPE(FlTestTexture, fl_test_texture, fl_texture_gl_get_type())
39 EXPECT_TRUE(FL_IS_TEST_TEXTURE(texture));
58 return FL_TEST_TEXTURE(g_object_new(fl_test_texture_get_type(),
nullptr));
62 TEST(FlTextureGLTest, TextureID) {
69 TEST(FlTextureGLTest, PopulateTexture) {
71 FlutterOpenGLTexture opengl_texture = {0};
72 g_autoptr(GError)
error =
nullptr;
74 &opengl_texture, &
error));
75 EXPECT_EQ(
error,
nullptr);
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
const uint8_t uint32_t uint32_t * height
const uint8_t uint32_t * width
const uint8_t uint32_t uint32_t GError ** error
G_MODULE_EXPORT int64_t fl_texture_get_id(FlTexture *self)
void fl_texture_set_id(FlTexture *self, int64_t id)
gboolean fl_texture_gl_populate(FlTextureGL *self, uint32_t width, uint32_t height, FlutterOpenGLTexture *opengl_texture, GError **error)
TEST(FlTextureGLTest, TextureID)
static constexpr uint32_t kBufferWidth
G_DECLARE_FINAL_TYPE(FlTestTexture, fl_test_texture, FL, TEST_TEXTURE, FlTextureGL) struct _FlTestTexture
A simple texture.
static constexpr uint32_t kRealBufferHeight
static void fl_test_texture_class_init(FlTestTextureClass *klass)
static constexpr uint32_t kBufferHeight
static constexpr uint32_t kRealBufferWidth
static gboolean fl_test_texture_populate(FlTextureGL *texture, uint32_t *target, uint32_t *name, uint32_t *width, uint32_t *height, GError **error)
static void fl_test_texture_init(FlTestTexture *self)
static FlTestTexture * fl_test_texture_new()