Flutter Linux Embedder
fl_pixel_buffer_texture_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_PIXEL_BUFFER_TEXTURE_PRIVATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_PIXEL_BUFFER_TEXTURE_PRIVATE_H_
7 
8 #include "flutter/shell/platform/embedder/embedder.h"
11 
12 G_BEGIN_DECLS
13 
14 /**
15  * fl_pixel_buffer_texture_populate:
16  * @texture: an #FlPixelBufferTexture.
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. If `error` is not %NULL, `*error` must be initialized
22  * (typically %NULL, but an error from a previous call using GLib error handling
23  * is 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_pixel_buffer_texture_populate(FlPixelBufferTexture* 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_PIXEL_BUFFER_TEXTURE_PRIVATE_H_
self height
self width
G_BEGIN_DECLS gboolean fl_pixel_buffer_texture_populate(FlPixelBufferTexture *texture, uint32_t width, uint32_t height, FlutterOpenGLTexture *opengl_texture, GError **error)
const uint8_t uint32_t uint32_t GError ** error