#include "fl_compositor.h"
Go to the source code of this file.
Functions | |
static void | fl_compositor_class_init (FlCompositorClass *klass) |
static void | fl_compositor_init (FlCompositor *self) |
FlutterRendererType | fl_compositor_get_renderer_type (FlCompositor *self) |
void | fl_compositor_wait_for_frame (FlCompositor *self, int target_width, int target_height) |
gboolean | fl_compositor_present_layers (FlCompositor *self, const FlutterLayer **layers, size_t layers_count) |
|
static |
Definition at line 11 of file fl_compositor.cc.
FlutterRendererType fl_compositor_get_renderer_type | ( | FlCompositor * | compositor | ) |
FlCompositor:
#FlCompositor is an abstract class that implements Flutter compositing. fl_compositor_get_renderer_type: @compositor: an #FlCompositor.
Gets the rendering method this compositor uses.
Returns: a FlutterRendererType.
Definition at line 15 of file fl_compositor.cc.
|
static |
Definition at line 13 of file fl_compositor.cc.
gboolean fl_compositor_present_layers | ( | FlCompositor * | compositor, |
const FlutterLayer ** | layers, | ||
size_t | layers_count | ||
) |
fl_compositor_present_layers: @compositor: an #FlCompositor. @layers: layers to be composited. @layers_count: number of layers.
Callback invoked by the engine to composite the contents of each layer onto the screen.
Returns TRUE if successful.
Definition at line 29 of file fl_compositor.cc.
Referenced by fl_view_present_layers(), and TEST().
void fl_compositor_wait_for_frame | ( | FlCompositor * | compositor, |
int | target_width, | ||
int | target_height | ||
) |
fl_compositor_wait_for_frame: @compositor: an #FlCompositor. @target_width: width of frame being waited for @target_height: height of frame being waited for
Holds the thread until frame with requested dimensions is presented. While waiting for frame Flutter platform and raster tasks are being processed.
Definition at line 21 of file fl_compositor.cc.
Referenced by handle_geometry_changed(), and TEST().