#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.
Classes | |
struct | FlTextureGLPrivate |
Functions | |
static void | fl_texture_gl_texture_iface_init (FlTextureInterface *iface) |
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)) static void fl_texture_gl_set_id(FlTexture *texture | |
static int64_t | fl_texture_gl_get_id (FlTexture *texture) |
static void | fl_texture_gl_class_init (FlTextureGLClass *klass) |
static void | fl_texture_gl_init (FlTextureGL *self) |
gboolean | fl_texture_gl_populate (FlTextureGL *self, uint32_t width, uint32_t height, FlutterOpenGLTexture *opengl_texture, GError **error) |
Variables | |
int64_t | id |
FlTextureGLPrivate * | priv |
|
static |
Definition at line 46 of file fl_texture_gl.cc.
|
static |
Definition at line 34 of file fl_texture_gl.cc.
References FlTextureGLPrivate::id, and priv.
Referenced by fl_texture_gl_texture_iface_init().
|
static |
Definition at line 48 of file fl_texture_gl.cc.
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.
References error, height, target, TRUE, and width.
Referenced by fl_engine_gl_external_texture_frame_callback(), and TEST().
|
static |
Definition at line 41 of file fl_texture_gl.cc.
References fl_texture_gl_get_id().
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) | |||
) |
priv id |
Definition at line 26 of file fl_texture_gl.cc.
FlTextureGLPrivate* priv |
Definition at line 28 of file fl_texture_gl.cc.
Referenced by fl_texture_gl_get_id().