#include <epoxy/egl.h>#include <glib-object.h>Go to the source code of this file.
Macros | |
| #define | EGL_NO_X11 |
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlOpenGLManager, fl_opengl_manager, FL, OPENGL_MANAGER, GObject) FlOpenGLManager *fl_opengl_manager_new() |
| gboolean | fl_opengl_manager_make_current (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_make_resource_current (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_make_platform_current (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_clear_current (FlOpenGLManager *manager) |
| EGLDisplay | fl_opengl_manager_get_display (FlOpenGLManager *manager) |
| EGLContext | fl_opengl_manager_get_context (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_can_blit (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_can_fence (FlOpenGLManager *manager) |
| gboolean | fl_opengl_manager_can_wait_sync (FlOpenGLManager *manager) |
| #define EGL_NO_X11 |
Definition at line 11 of file fl_opengl_manager.h.
| gboolean fl_opengl_manager_can_blit | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_can_blit: @manager: an #FlOpenGLManager.
Checks whether glBlitFramebuffer can be used on the currently current OpenGL context. glBlitFramebuffer is a GLES3 / OpenGL 3.0 function that may be missing or broken on some drivers, so callers should fall back to shader compositing when this returns FALSE. Requires an OpenGL context to be current.
Returns: TRUE if glBlitFramebuffer is available.
Definition at line 155 of file fl_opengl_manager.cc.
References driver_supports_blit().
Referenced by fl_compositor_opengl_new(), and setup().
| gboolean fl_opengl_manager_can_fence | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_can_fence: @manager: an #FlOpenGLManager.
Checks whether fences can be used to synchronize rendering between OpenGL contexts. Fences are an extension that may be missing on some drivers, so callers should fall back to waiting for the rendering to complete, e.g. with glFinish(), when this returns FALSE.
Returns: TRUE if fences are available.
Definition at line 178 of file fl_opengl_manager.cc.
References has_extension().
Referenced by fl_compositor_opengl_new().
| gboolean fl_opengl_manager_can_wait_sync | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_can_wait_sync: @manager: an #FlOpenGLManager.
Checks whether a fence can be waited for by the GPU, i.e. without blocking the thread doing the waiting. This is an extension that may be missing on some drivers, so callers should fall back to blocking when this returns FALSE.
Returns: TRUE if fences can be waited for without blocking.
Definition at line 182 of file fl_opengl_manager.cc.
References has_extension().
Referenced by fl_gl_fence_new().
| gboolean fl_opengl_manager_clear_current | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_clear_current: @manager: an #FlOpenGLManager.
Clears the current rendering context.
Returns: TRUE if the context cleared.
Definition at line 116 of file fl_opengl_manager.cc.
Referenced by fl_engine_gl_clear_current(), realize_cb(), and setup().
| EGLContext fl_opengl_manager_get_context | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_get_context: @manager: an #FlOpenGLManager.
Gets the EGL context the engine renders with. This can be used as a share context when creating additional EGL contexts so they can access textures rendered by the engine directly (without using EGLImage).
Returns: an EGLContext.
Definition at line 125 of file fl_opengl_manager.cc.
Referenced by setup().
| EGLDisplay fl_opengl_manager_get_display | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_get_display: @manager: an #FlOpenGLManager.
Gets the EGL display the engine renders to. This can be used to create additional EGL contexts that share resources with the engine.
Returns: an EGLDisplay.
Definition at line 121 of file fl_opengl_manager.cc.
Referenced by fl_gl_fence_new(), and get_display().
| gboolean fl_opengl_manager_make_current | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_make_current: @manager: an #FlOpenGLManager.
Makes the rendering context current.
Returns: TRUE if the context made current.
Definition at line 101 of file fl_opengl_manager.cc.
Referenced by collect_opengl_backing_store(), create_opengl_backing_store(), fl_compositor_opengl_new(), fl_engine_gl_make_current(), and fl_subsurface_egl_present().
| gboolean fl_opengl_manager_make_platform_current | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_make_platform_current: @manager: an #FlOpenGLManager.
Makes the platform rendering context current.
Returns: TRUE if the context made current.
Definition at line 111 of file fl_opengl_manager.cc.
Referenced by fl_compositor_opengl_shader_dispose(), and setup_shader().
| gboolean fl_opengl_manager_make_resource_current | ( | FlOpenGLManager * | manager | ) |
fl_opengl_manager_make_resource_current: @manager: an #FlOpenGLManager.
Makes the resource rendering context current.
Returns: TRUE if the context made current.
Definition at line 106 of file fl_opengl_manager.cc.
Referenced by fl_engine_gl_make_resource_current().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlOpenGLManager | , |
| fl_opengl_manager | , | ||
| FL | , | ||
| OPENGL_MANAGER | , | ||
| GObject | |||
| ) |
fl_opengl_manager_new:
Creates an object that allows Flutter to render by OpenGL ES.
Returns: a new #FlOpenGLManager.