| 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
21 * %NULL to ignore.
22 *
23 * Attempts to populate the specified @opengl_texture with texture details
24 * such as the name, width, height and the pixel format.
25 *
26 * Returns: %TRUE on success.
27 */
28 gboolean fl_texture_gl_populate(FlTextureGL* texture,
29 uint32_t width,
30 uint32_t height,
31 FlutterOpenGLTexture* opengl_texture,
32 GError** error);
33
34 G_END_DECLS
35
36 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_GL_PRIVATE_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
height
G_BEGIN_DECLS int height
Definition: fl_backing_store_provider.h:37
fl_texture_registrar.h
fl_texture_gl.h
error
const uint8_t uint32_t uint32_t GError ** error
Definition: fl_pixel_buffer_texture_test.cc:40
width
const uint8_t uint32_t * width
Definition: fl_pixel_buffer_texture_test.cc:38