#include <cairo/cairo.h>#include <glib-object.h>#include "flutter/shell/platform/embedder/embedder.h"Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlCompositorSoftware, fl_compositor_software, FL, COMPOSITOR_SOFTWARE, GObject) FlCompositorSoftware *fl_compositor_software_new() |
| gboolean | fl_compositor_software_composite_layers (FlCompositorSoftware *compositor, cairo_t *cr, const FlutterLayer **layers, size_t layers_count) |
| gboolean fl_compositor_software_composite_layers | ( | FlCompositorSoftware * | compositor, |
| cairo_t * | cr, | ||
| const FlutterLayer ** | layers, | ||
| size_t | layers_count | ||
| ) |
fl_compositor_software_composite_layers: @compositor: an #FlCompositorSoftware. @cr: a Cairo rendering context to draw the layers into. @layers: layers to be composited. Each layer must be a backing store layer (kFlutterLayerContentTypeBackingStore) backed by a software backing store (kFlutterBackingStoreTypeSoftware). @layers_count: number of layers.
Combines and draws the provided layers into @cr. The caller is responsible for managing the surface that @cr writes into.
Returns TRUE if successful.
Definition at line 23 of file fl_compositor_software.cc.
References i, layers, layers_count, and TRUE.
Referenced by TEST_F().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlCompositorSoftware | , |
| fl_compositor_software | , | ||
| FL | , | ||
| COMPOSITOR_SOFTWARE | , | ||
| GObject | |||
| ) |
FlCompositorSoftware:
#FlCompositorSoftware is a class that implements compositing using software rendering.
Layers are composited into a caller-provided Cairo context. The caller is responsible for managing the surface being drawn into. fl_compositor_software_new:
Creates a new software rendering compositor.
Returns: a new #FlCompositorSoftware.