#include "fl_compositor_software.h"Go to the source code of this file.
Classes | |
| struct | _FlCompositorSoftware |
Functions | |
| static void | fl_compositor_software_dispose (GObject *object) |
| static void | fl_compositor_software_class_init (FlCompositorSoftwareClass *klass) |
| static void | fl_compositor_software_init (FlCompositorSoftware *self) |
| FlCompositorSoftware * | fl_compositor_software_new () |
| gboolean | fl_compositor_software_composite_layers (FlCompositorSoftware *self, const FlutterLayer **layers, size_t layers_count) |
| void | fl_compositor_software_get_frame_size (FlCompositorSoftware *self, size_t *width, size_t *height) |
| gboolean | fl_compositor_software_render (FlCompositorSoftware *self, cairo_t *cr, gint scale_factor) |
|
static |
Definition at line 33 of file fl_compositor_software.cc.
References fl_compositor_software_dispose().
| gboolean fl_compositor_software_composite_layers | ( | FlCompositorSoftware * | compositor, |
| const FlutterLayer ** | layers, | ||
| size_t | layers_count | ||
| ) |
fl_compositor_software_composite_layers: @compositor: an #FlCompositorSoftware. @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 stores the provided layers as the current frame.
Returns TRUE if successful.
Definition at line 45 of file fl_compositor_software.cc.
References FlutterSoftwareBackingStore::allocation, FlutterLayer::backing_store, FlutterSize::height, FlutterSoftwareBackingStore::height, kFlutterBackingStoreTypeSoftware, kFlutterLayerContentTypeBackingStore, layers, layers_count, FlutterSoftwareBackingStore::row_bytes, self, FlutterLayer::size, FlutterBackingStore::software, TRUE, FlutterBackingStore::type, FlutterLayer::type, and FlutterSize::width.
Referenced by fl_view_renderer_software_present_layers(), TEST_F(), and TEST_F().
|
static |
Definition at line 22 of file fl_compositor_software.cc.
References self.
Referenced by fl_compositor_software_class_init().
| void fl_compositor_software_get_frame_size | ( | FlCompositorSoftware * | compositor, |
| size_t * | width, | ||
| size_t * | height | ||
| ) |
fl_compositor_software_get_frame_size: @compositor: an #FlCompositorSoftware. @width: location to write frame width in pixels. @height: location to write frame height in pixels.
Get the size of the stored frame. The size is zero if there is no frame yet.
Definition at line 79 of file fl_compositor_software.cc.
References height, self, and width.
Referenced by G_DEFINE_TYPE(), TEST_F(), TEST_F(), and wait_for_frame().
|
static |
Definition at line 38 of file fl_compositor_software.cc.
| FlCompositorSoftware * fl_compositor_software_new | ( | ) |
Definition at line 40 of file fl_compositor_software.cc.
Referenced by fl_view_renderer_software_realize(), and FlCompositorSoftwareTest::SetUp().
| gboolean fl_compositor_software_render | ( | FlCompositorSoftware * | compositor, |
| cairo_t * | cr, | ||
| gint | scale_factor | ||
| ) |
fl_compositor_software_render: @compositor: an #FlCompositorSoftware. @cr: a Cairo rendering context. @scale_factor: the device scale factor to render at.
Renders the stored frame.
Returns TRUE if successful.
Definition at line 90 of file fl_compositor_software.cc.
Referenced by fl_view_renderer_software_draw(), TEST_F(), and TEST_F().