Flutter Engine
_FlRendererClass Struct Reference

#include <fl_renderer.h>

Public Attributes

GObjectClass parent_class
 
gboolean(* create_contexts )(FlRenderer *renderer, GtkWidget *widget, GdkGLContext **visible, GdkGLContext **resource, GError **error)
 
: proc name.

Virtual method called when Flutter needs OpenGL proc address. : an #FlRenderer.

Returns: OpenGL proc address.

void *(* get_proc_address )()
 
gboolean(* create_backing_store )(FlRenderer *renderer, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out)
 
gboolean(* collect_backing_store )(FlRenderer *renderer, const FlutterBackingStore *backing_store)
 
gboolean(* present_layers )(FlRenderer *renderer, const FlutterLayer **layers, size_t layers_count)
 

Detailed Description

FlRenderer:

#FlRenderer is an abstract class that allows Flutter to draw pixels.

Definition at line 36 of file fl_renderer.h.

Member Data Documentation

◆ collect_backing_store

gboolean(* _FlRendererClass::collect_backing_store) (FlRenderer *renderer, const FlutterBackingStore *backing_store)

Virtual method called when Flutter wants to release the backing store. : an #FlRenderer. : backing store to be released.

Returns TRUE if successful.

Definition at line 85 of file fl_renderer.h.

◆ create_backing_store

gboolean(* _FlRendererClass::create_backing_store) (FlRenderer *renderer, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out)

Virtual method called when Flutter needs a backing store for a specific FlutterLayer. : an #FlRenderer. : backing store config. : saves created backing store.

Returns TRUE if successful.

Definition at line 74 of file fl_renderer.h.

◆ create_contexts

gboolean(* _FlRendererClass::create_contexts) (FlRenderer *renderer, GtkWidget *widget, GdkGLContext **visible, GdkGLContext **resource, GError **error)

Virtual method called when Flutter needs #GdkGLContext to render. : an #FlRenderer. : the widget being rendered on. : (out): the GL context for visible surface. : (out): the GL context for resource loading. : (allow-none): #GError location to store the error occurring, or NULL to ignore.

Returns: TRUE if both contexts were created, FALSE if there was an error.

Definition at line 50 of file fl_renderer.h.

◆ get_proc_address

void*(* _FlRendererClass::get_proc_address) ()

Definition at line 63 of file fl_renderer.h.

◆ parent_class

GObjectClass _FlRendererClass::parent_class

Definition at line 37 of file fl_renderer.h.

◆ present_layers

gboolean(* _FlRendererClass::present_layers) (FlRenderer *renderer, const FlutterLayer **layers, size_t layers_count)

Virtual method called when Flutter wants to composite layers onto the screen. : an #FlRenderer. : layers to be composited. : number of layers.

Returns TRUE if successful.

Definition at line 97 of file fl_renderer.h.


The documentation for this struct was generated from the following file: