| Flutter Linux Embedder |

fl_compositor_opengl.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_OPENGL_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_COMPOSITOR_OPENGL_H_
7
8 #include <gtk/gtk.h>
9
10 #include "flutter/shell/platform/embedder/embedder.h"
11 #include "flutter/shell/platform/linux/fl_compositor.h"
12 #include "flutter/shell/platform/linux/fl_framebuffer.h"
13 #include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
14
15 G_BEGIN_DECLS
16
17 G_DECLARE_FINAL_TYPE(FlCompositorOpenGL,
18 fl_compositor_opengl,
19 FL,
20 COMPOSITOR_OPENGL,
21 FlCompositor)
22
23 /**
24 * FlCompositorOpenGL:
25 *
26 * #FlCompositorOpenGL is class that implements compositing using OpenGL.
27 */
28
29 /**
30 * fl_compositor_opengl_new:
31 * @engine: an #FlEngine.
32 * @shareable: %TRUE if the can use a framebuffer that is shared between
33 * contexts.
34 *
35 * Creates a new OpenGL compositor.
36 *
37 * Returns: a new #FlCompositorOpenGL.
38 */
39 FlCompositorOpenGL* fl_compositor_opengl_new(FlEngine* engine,
40 gboolean shareable);
41
42 /**
43 * fl_compositor_opengl_render:
44 * @compositor: an #FlCompositorOpenGL.
45 * @width: output width in pixels.
46 * @height: output height in pixels.
47 *
48 * Renders the current frame.
49 */
50 void fl_compositor_opengl_render(FlCompositorOpenGL* compositor,
51 size_t width,
52 size_t height);
53
54 G_END_DECLS
55
56 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_COMPOSITOR_OPENGL_H_
FL
FL
Definition: fl_binary_messenger.cc:27
fl_compositor.h
fl_compositor_opengl_new
FlCompositorOpenGL * fl_compositor_opengl_new(FlEngine *engine, gboolean shareable)
Definition: fl_compositor_opengl.cc:402
shareable
G_BEGIN_DECLS gboolean shareable
Definition: fl_compositor_opengl.h:40
fl_compositor_opengl_render
void fl_compositor_opengl_render(FlCompositorOpenGL *compositor, size_t width, size_t height)
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlCompositorOpenGL, fl_compositor_opengl, FL, COMPOSITOR_OPENGL, FlCompositor) FlCompositorOpenGL *fl_compositor_opengl_new(FlEngine *engine
height
self height
Definition: fl_compositor_software.cc:43
width
self width
Definition: fl_compositor_software.cc:42
fl_engine.h
fl_framebuffer.h