#include <epoxy/gl.h>#include <glib-object.h>Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS FlFramebuffer * | fl_framebuffer_new (GLint format, size_t width, size_t height, gboolean shareable) |
| gboolean | fl_framebuffer_get_shareable (FlFramebuffer *framebuffer) |
| FlFramebuffer * | fl_framebuffer_create_sibling (FlFramebuffer *framebuffer) |
| GLuint | fl_framebuffer_get_id (FlFramebuffer *framebuffer) |
| GLuint | fl_framebuffer_get_texture_id (FlFramebuffer *framebuffer) |
| size_t | fl_framebuffer_get_width (FlFramebuffer *framebuffer) |
| size_t | fl_framebuffer_get_height (FlFramebuffer *framebuffer) |
| FlFramebuffer * fl_framebuffer_create_sibling | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_create_sibling: @framebuffer: an #FlFramebuffer.
Creates a new framebuffer with the same backing texture as the original. This uses EGLImage to share the texture and allows a framebuffer created in one OpenGL context to be used in another.
Returns: a new #FlFramebuffer.
Definition at line 120 of file fl_framebuffer.cc.
References self.
Referenced by fl_compositor_opengl_render(), and TEST().
| size_t fl_framebuffer_get_height | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_height: @framebuffer: an #FlFramebuffer.
Gets the height of the framebuffer in pixels.
Returns: height in pixels.
Definition at line 160 of file fl_framebuffer.cc.
References self.
Referenced by composite_layer(), fl_compositor_opengl_present_layers(), and fl_compositor_opengl_render().
| GLuint fl_framebuffer_get_id | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_id: @framebuffer: an #FlFramebuffer.
Gets the ID for this framebuffer.
Returns: OpenGL framebuffer id or 0 if creation failed.
Definition at line 148 of file fl_framebuffer.cc.
References self.
Referenced by create_opengl_backing_store(), and fl_compositor_opengl_present_layers().
| gboolean fl_framebuffer_get_shareable | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_shareable: @framebuffer: an #FlFramebuffer.
Checks if this framebuffer can be shared between contexts (using fl_framebuffer_create_sibling).
Returns: TRUE if this framebuffer can be shared.
Definition at line 115 of file fl_framebuffer.cc.
References self.
Referenced by fl_compositor_opengl_render().
| GLuint fl_framebuffer_get_texture_id | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_texture_id: @framebuffer: an #FlFramebuffer.
Gets the ID of the texture associated with this framebuffer.
Returns: OpenGL texture id or 0 if creation failed.
Definition at line 152 of file fl_framebuffer.cc.
References self.
Referenced by composite_layer(), and fl_compositor_opengl_render().
| size_t fl_framebuffer_get_width | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_width: @framebuffer: an #FlFramebuffer.
Gets the width of the framebuffer in pixels.
Returns: width in pixels.
Definition at line 156 of file fl_framebuffer.cc.
References self.
Referenced by composite_layer(), fl_compositor_opengl_present_layers(), and fl_compositor_opengl_render().
| G_BEGIN_DECLS FlFramebuffer * fl_framebuffer_new | ( | GLint | format, |
| size_t | width, | ||
| size_t | height, | ||
| gboolean | shareable | ||
| ) |
FlFramebuffer:
#FlFramebuffer creates framebuffers and their backing textures for use by the Flutter compositor. fl_framebuffer_new: @format: format, e.g. GL_RGB, GL_BGR @width: width of texture. @height: height of texture. @shareable: TRUE if this framebuffer can be shared between contexts (requires EGL).
Creates a new frame buffer. Requires a valid OpenGL context to create.
Returns: a new #FlFramebuffer.
Definition at line 69 of file fl_framebuffer.cc.
References create_egl_image(), format, height, self, shareable, and width.
Referenced by create_opengl_backing_store(), fl_compositor_opengl_present_layers(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().