Flutter Linux Embedder
fl_texture_registrar_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_REGISTRAR_PRIVATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_REGISTRAR_PRIVATE_H_
7 
8 #include "flutter/shell/platform/embedder/embedder.h"
11 
12 G_BEGIN_DECLS
13 
14 /**
15  * fl_texture_registrar_new:
16  * @engine: an #FlEngine.
17  *
18  * Creates a new #FlTextureRegistrar.
19  *
20  * Returns: a new #FlTextureRegistrar.
21  */
22 FlTextureRegistrar* fl_texture_registrar_new(FlEngine* engine);
23 
24 /**
25  * fl_texture_registrar_lookup_texture:
26  * @registrar: an #FlTextureRegistrar.
27  * @texture_id: ID of texture.
28  *
29  * Looks for the texture with the given ID.
30  *
31  * Returns: an #FlTexture or %NULL if no texture with this ID.
32  */
33 FlTexture* fl_texture_registrar_lookup_texture(FlTextureRegistrar* registrar,
34  int64_t texture_id);
35 
36 G_END_DECLS
37 
38 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_REGISTRAR_PRIVATE_H_
fl_texture_registrar_lookup_texture
FlTexture * fl_texture_registrar_lookup_texture(FlTextureRegistrar *registrar, int64_t texture_id)
Definition: fl_texture_registrar.cc:191
fl_texture_registrar.h
fl_engine.h
engine
FlEngine * engine
Definition: fl_view_accessible.cc:26
texture_id
int64_t texture_id
Definition: texture_registrar_unittests.cc:24
fl_texture_registrar_new
G_BEGIN_DECLS FlTextureRegistrar * fl_texture_registrar_new(FlEngine *engine)
Definition: fl_texture_registrar.cc:216