#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_render (FlCompositorOpenGL *compositor, int width, int height) |
void | fl_compositor_opengl_cleanup (FlCompositorOpenGL *compositor) |
Variables | |
G_BEGIN_DECLS GdkGLContext * | context |
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 558 of file fl_compositor_opengl.cc.
Referenced by unrealize_cb().
void fl_compositor_opengl_render | ( | FlCompositorOpenGL * | compositor, |
int | width, | ||
int | height | ||
) |
fl_compositor_opengl_render: @compositor: an #FlCompositorOpenGL. @width: width of the window in pixels. @height: height of the window in pixels.
Performs OpenGL commands to render current Flutter view.
Definition at line 545 of file fl_compositor_opengl.cc.
References height, render(), and width.
Referenced by render_cb(), and TEST().
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlCompositorOpenGL | , |
fl_compositor_opengl | , | ||
FL | , | ||
COMPOSITOR_OPENGL | , | ||
FlCompositor | |||
) |
FlCompositorOpenGL:
#FlCompositorOpenGL is class that implements compositing using OpenGL. fl_compositor_opengl_new: @engine: an #FlEngine. @context: the OpenGL context that is being rendered into.
Creates a new OpenGL compositor.
Returns: a new #FlCompositorOpenGL.
G_BEGIN_DECLS GdkGLContext* context |
Definition at line 38 of file fl_compositor_opengl.h.
Referenced by create_pango_layout(), fl_compositor_opengl_new(), and get_pango_context().