Flutter Linux Embedder
fl_compositor_software.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_COMPOSITOR_SOFTWARE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_COMPOSITOR_SOFTWARE_H_
7 
8 #include <cairo/cairo.h>
9 
10 #include "flutter/shell/platform/embedder/embedder.h"
13 
14 G_BEGIN_DECLS
15 
16 G_DECLARE_FINAL_TYPE(FlCompositorSoftware,
17  fl_compositor_software,
18  FL,
19  COMPOSITOR_SOFTWARE,
20  FlCompositor)
21 
22 /**
23  * FlCompositorSoftware:
24  *
25  * #FlCompositorSoftware is a class that implements compositing using software
26  * rendering.
27  */
28 
29 /**
30  * fl_compositor_software_new:
31  *
32  * Creates a new software rendering compositor.
33  *
34  * Returns: a new #FlCompositorSoftware.
35  */
36 FlCompositorSoftware* fl_compositor_software_new();
37 
38 /**
39  * fl_compositor_software_render:
40  * @compositor: an #FlCompositorSoftware.
41  * @cr: the cairo context to draw to.
42  * @scale_factor: pixel scale factor.
43  *
44  * Render the current frame.
45  *
46  * Returns: TRUE if rendered.
47  */
48 gboolean fl_compositor_software_render(FlCompositorSoftware* compositor,
49  cairo_t* cr,
50  gint scale_factor);
51 
52 G_END_DECLS
53 
54 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_COMPOSITOR_SOFTWARE_H_
FlCompositorSoftware * fl_compositor_software_new()
gboolean fl_compositor_software_render(FlCompositorSoftware *compositor, cairo_t *cr, gint scale_factor)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlCompositorSoftware, fl_compositor_software, FL, COMPOSITOR_SOFTWARE, FlCompositor) FlCompositorSoftware *fl_compositor_software_new()