5#include "flutter/shell/platform/linux/fl_texture_gl_private.h"
6#include "flutter/shell/platform/linux/fl_texture_private.h"
7#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
8#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture.h"
9#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
10#include "flutter/shell/platform/linux/testing/fl_test.h"
11#include "gtest/gtest.h"
27struct _FlTestTexture {
28 FlTextureGL parent_instance;
31G_DEFINE_TYPE(FlTestTexture, fl_test_texture, fl_texture_gl_get_type())
58 return FL_TEST_TEXTURE(g_object_new(fl_test_texture_get_type(),
nullptr));
62TEST(FlTextureGLTest, TextureID) {
69TEST(FlTextureGLTest, PopulateTexture) {
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 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 FlTestTexture * fl_test_texture_new()
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)
DEF_SWITCHES_START aot vmservice shared library name
size_t height
Height of the texture.
#define EXPECT_TRUE(handle)