#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_gl.h"
#include "flutter/shell/platform/linux/fl_texture_gl_private.h"
#include <epoxy/gl.h>
#include <gmodule.h>
#include <cstdio>
Go to the source code of this file.
◆ fl_texture_gl_class_init()
static void fl_texture_gl_class_init |
( |
FlTextureGLClass * |
klass | ) |
|
|
static |
◆ fl_texture_gl_get_id()
static int64_t fl_texture_gl_get_id |
( |
FlTexture * |
texture | ) |
|
|
static |
Definition at line 34 of file fl_texture_gl.cc.
34 {
37 fl_texture_gl_get_instance_private(
self));
39}
FlTextureGLPrivate * priv
◆ fl_texture_gl_init()
static void fl_texture_gl_init |
( |
FlTextureGL * |
self | ) |
|
|
static |
◆ fl_texture_gl_populate()
gboolean fl_texture_gl_populate |
( |
FlTextureGL * |
texture, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
FlutterOpenGLTexture * |
opengl_texture, |
|
|
GError ** |
error |
|
) |
| |
fl_texture_gl_populate: @texture: an #FlTextureGL. @width: width of the texture. @height: height of the texture. @opengl_texture: (out): return an FlutterOpenGLTexture. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Attempts to populate the specified @opengl_texture with texture details such as the name, width, height and the pixel format.
Returns: TRUE on success.
Definition at line 50 of file fl_texture_gl.cc.
54 {
59 }
60
63 opengl_texture->
format = GL_RGBA8;
68
70}
const uint8_t uint32_t uint32_t GError ** error
DEF_SWITCHES_START aot vmservice shared library name
uint32_t name
The name of the texture.
VoidCallback destruction_callback
void * user_data
User data to be returned on the invocation of the destruction callback.
size_t height
Height of the texture.
uint32_t format
The texture format (example GL_RGBA8).
◆ fl_texture_gl_texture_iface_init()
static void fl_texture_gl_texture_iface_init |
( |
FlTextureInterface * |
iface | ) |
|
|
static |
Definition at line 41 of file fl_texture_gl.cc.
41 {
42 iface->set_id = fl_texture_gl_set_id;
44}
static int64_t fl_texture_gl_get_id(FlTexture *texture)
◆ G_DEFINE_TYPE_WITH_CODE()
G_DEFINE_TYPE_WITH_CODE |
( |
FlTextureGL |
, |
|
|
fl_texture_gl |
, |
|
|
G_TYPE_OBJECT |
, |
|
|
G_IMPLEMENT_INTERFACE(fl_texture_get_type(), fl_texture_gl_texture_iface_init);G_ADD_PRIVATE(FlTextureGL) |
|
|
) |
| |
◆ id
◆ priv