| 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"
9 #include "flutter/shell/platform/linux/public/flutter_linux/fl_pixel_buffer_texture.h"
10 #include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.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.
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_pixel_buffer_texture_populate(FlPixelBufferTexture* 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_PIXEL_BUFFER_TEXTURE_PRIVATE_H_
fl_pixel_buffer_texture.h
fl_pixel_buffer_texture_populate
G_BEGIN_DECLS gboolean fl_pixel_buffer_texture_populate(FlPixelBufferTexture *texture, uint32_t width, uint32_t height, FlutterOpenGLTexture *opengl_texture, GError **error)
Definition: fl_pixel_buffer_texture.cc:71
height
const uint8_t uint32_t uint32_t * height
Definition: fl_pixel_buffer_texture_test.cc:39
width
const uint8_t uint32_t * width
Definition: fl_pixel_buffer_texture_test.cc:38
error
const uint8_t uint32_t uint32_t GError ** error
Definition: fl_pixel_buffer_texture_test.cc:40
fl_texture_registrar.h