#include <gtk/gtk.h>#include "flutter/shell/platform/embedder/embedder.h"#include "flutter/shell/platform/linux/fl_compositor.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlCompositorOpenGL, fl_compositor_opengl, FL, COMPOSITOR_OPENGL, FlCompositor) FlCompositorOpenGL *fl_compositor_opengl_new(FlEngine *engine) |
| void | fl_compositor_opengl_setup (FlCompositorOpenGL *compositor) |
| void | fl_compositor_opengl_render (FlCompositorOpenGL *compositor, FlutterViewId view_id, int width, int height, const GdkRGBA *background_color) |
| void | fl_compositor_opengl_cleanup (FlCompositorOpenGL *compositor) |
| void fl_compositor_opengl_cleanup | ( | FlCompositorOpenGL * | compositor | ) |
fl_compositor_opengl_cleanup: @compositor: an #FlCompositorOpenGL.
Removes OpenGL resources used for rendering. Requires an active context.
Definition at line 617 of file fl_compositor_opengl.cc.
Referenced by unrealize_cb().
| void fl_compositor_opengl_render | ( | FlCompositorOpenGL * | compositor, |
| FlutterViewId | view_id, | ||
| int | width, | ||
| int | height, | ||
| const GdkRGBA * | background_color | ||
| ) |
fl_compositor_opengl_render: @compositor: an #FlCompositorOpenGL. @view_id: view to render. @width: width of the window in pixels. @height: height of the window in pixels. @background_color: color to use for background.
Performs OpenGL commands to render current Flutter view.
Definition at line 597 of file fl_compositor_opengl.cc.
References height, render(), view_id, and width.
Referenced by render_cb(), and TEST().
| void fl_compositor_opengl_setup | ( | FlCompositorOpenGL * | compositor | ) |
fl_compositor_opengl_setup: @compositor: an #FlCompositorOpenGL.
Creates OpenGL resources required before rendering. Requires an active context.
Definition at line 582 of file fl_compositor_opengl.cc.
References is_vivante(), and setup_shader().
Referenced by realize_cb(), and TEST().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlCompositorOpenGL | , |
| fl_compositor_opengl | , | ||
| FL | , | ||
| COMPOSITOR_OPENGL | , | ||
| FlCompositor | |||
| ) |
FlCompositorOpenGL:
#FlCompositorOpenGL is an abstract class that allows Flutter to draw pixels. fl_compositor_opengl_new: @engine: an #FlEngine.
Creates a new OpenGL compositor.
Returns: a new #FlCompositorOpenGL.