| Flutter Linux Embedder |

Classes | Functions
fl_compositor.h File Reference
`#include <cairo.h>`
`#include <gdk/gdk.h>`
`#include "flutter/shell/platform/embedder/embedder.h"`

Go to the source code of this file.

## Classes
struct | _FlCompositorClass

## Functions
gboolean | fl_compositor_present_layers (FlCompositor *compositor, const FlutterLayer **layers, size_t layers_count)
gboolean | fl_compositor_render (FlCompositor *compositor, cairo_t *cr, GdkWindow *window)

## Function Documentation

## ◆ fl_compositor_present_layers()

gboolean fl_compositor_present_layers | ( | FlCompositor * | compositor,
|  | const FlutterLayer ** | layers,
|  | size_t | layers_count
| ) |  |

FlCompositor:

#FlCompositor is an abstract class that implements Flutter compositing. fl_compositor_present_layers: @compositor: an #FlCompositor. @layers: layers to be composited. @layers_count: number of layers.

Composite layers. Called from the Flutter rendering thread.

Returns TRUE if successful.

Definition at line 15 of file fl_compositor.cc.

17 {
18 g_return_val_if_fail(FL_IS_COMPOSITOR(self), FALSE);
19 return FL_COMPOSITOR_GET_CLASS(self)->present_layers(self, layers,
20 layers_count);
21 }
layers_count
const FlutterLayer size_t layers_count
Definition: fl_compositor_software.cc:33
layers
const FlutterLayer ** layers
Definition: fl_compositor_software.cc:32

References layers, and layers_count.

Referenced by fl_view_present_layers(), and TEST().

## ◆ fl_compositor_render()

gboolean fl_compositor_render | ( | FlCompositor * | compositor,
|  | cairo_t * | cr,
|  | GdkWindow * | window
| ) |  |

fl_compositor_render: @compositor: an #FlCompositor. @cr: a Cairo rendering context. @window: window being rendered into.

Renders the current frame. Called from the GTK thread.

Returns TRUE if successful.

Definition at line 23 of file fl_compositor.cc.

25 {
26 g_return_val_if_fail(FL_IS_COMPOSITOR(self), FALSE);
27 return FL_COMPOSITOR_GET_CLASS(self)->render(self, cr, window);
28 }

Referenced by draw_cb(), and TEST().