Flutter Engine
The Flutter Engine
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"
9#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
10#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
11
12G_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 */
22FlTextureRegistrar* 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 */
33FlTexture* fl_texture_registrar_lookup_texture(FlTextureRegistrar* registrar,
34 int64_t texture_id);
35
36G_END_DECLS
37
38#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXTURE_REGISTRAR_PRIVATE_H_
FlutterEngine engine
Definition: main.cc:68
FlTexture * fl_texture_registrar_lookup_texture(FlTextureRegistrar *registrar, int64_t texture_id)
G_BEGIN_DECLS FlTextureRegistrar * fl_texture_registrar_new(FlEngine *engine)
int64_t texture_id