| Flutter Linux Embedder |

fl_texture_gl_private.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_H_
7
8 #include "flutter/shell/platform/embedder/embedder.h"
9 #include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_gl.h"
10 #include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
11
12 G_BEGIN_DECLS
13
14 /**
15 * fl_texture_gl_populate:
16 * @texture: an #FlTextureGL.
17 * @width: width of the texture.
18 * @height: height of the texture.
19 * @opengl_texture: (out): return an #FlutterOpenGLTexture.
20 * @error: (allow-none): #GError location to store the error occurring, or %NULL
21 * to ignore. If `error` is not %NULL, `*error` must be initialized (typically
22 * %NULL, but an error from a previous call using GLib error handling is
23 * explicitly valid).
24 *
25 * Attempts to populate the specified @opengl_texture with texture details
26 * such as the name, width, height and the pixel format.
27 *
28 * Returns: %TRUE on success.
29 */
30 gboolean fl_texture_gl_populate(FlTextureGL* texture,
31 uint32_t width,
32 uint32_t height,
33 FlutterOpenGLTexture* opengl_texture,
34 GError** error);
35
36 G_END_DECLS
37
38 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_H_
height
self height
Definition: fl_compositor_software.cc:43
width
self width
Definition: fl_compositor_software.cc:42
error
const uint8_t uint32_t uint32_t GError ** error
Definition: fl_pixel_buffer_texture_test.cc:40
fl_texture_gl.h
fl_texture_gl_populate
G_BEGIN_DECLS gboolean fl_texture_gl_populate(FlTextureGL *texture, uint32_t width, uint32_t height, FlutterOpenGLTexture *opengl_texture, GError **error)
Definition: fl_texture_gl.cc:50
fl_texture_registrar.h