| Flutter Linux Embedder |

fl_renderable.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_RENDERABLE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_RENDERABLE_H_
7
8 #include <gdk/gdk.h>
9
10 #include "flutter/shell/platform/embedder/embedder.h"
11
12 G_BEGIN_DECLS
13
14 G_DECLARE_INTERFACE(FlRenderable, fl_renderable, FL, RENDERABLE, GObject);
15
16 /**
17 * FlRenderable:
18 *
19 * An interface for a class that can render views from #FlRenderer.
20 *
21 * This interface is typically implemented by #FlView and is provided to make
22 * #FlRenderer easier to test.
23 */
24
25 struct _FlRenderableInterface {
26 GTypeInterface g_iface;
27
28 void (*present_layers)(FlRenderable* renderable,
29 const FlutterLayer** layers,
30 size_t layers_count);
31 };
32
33 /**
34 * fl_renderable_present_layers:
35 * @renderable: an #FlRenderable
36 * @layers: layers to draw.
37 * @layers_count: number of layers.
38 *
39 * present_layers a frame. This method can be called from any thread.
40 */
41 void fl_renderable_present_layers(FlRenderable* renderable,
42 const FlutterLayer** layers,
43 size_t layers_count);
44
45 G_END_DECLS
46
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_RENDERABLE_H_
FL
FL
Definition: fl_binary_messenger.cc:27
layers_count
const FlutterLayer size_t layers_count
Definition: fl_compositor_software.cc:33
layers
const FlutterLayer ** layers
Definition: fl_compositor_software.cc:32
fl_renderable_present_layers
void fl_renderable_present_layers(FlRenderable *renderable, const FlutterLayer **layers, size_t layers_count)
Definition: fl_renderable.cc:11
G_DECLARE_INTERFACE
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlRenderable, fl_renderable, FL, RENDERABLE, GObject)
_FlRenderableInterface
Definition: fl_renderable.h:25
_FlRenderableInterface::g_iface
GTypeInterface g_iface
Definition: fl_renderable.h:26
_FlRenderableInterface::present_layers
void(* present_layers)(FlRenderable *renderable, const FlutterLayer **layers, size_t layers_count)
Definition: fl_renderable.h:28