#include <glib-object.h>
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/linux/fl_display_monitor.h"
#include "flutter/shell/platform/linux/fl_mouse_cursor_handler.h"
#include "flutter/shell/platform/linux/fl_renderer.h"
#include "flutter/shell/platform/linux/fl_task_runner.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_dart_project.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
Go to the source code of this file.
Typedefs | |
typedef gboolean(* | FlEnginePlatformMessageHandler) (FlEngine *engine, const gchar *channel, GBytes *message, const FlutterPlatformMessageResponseHandle *response_handle, gpointer user_data) |
typedef void(* | FlEngineUpdateSemanticsHandler) (FlEngine *engine, const FlutterSemanticsUpdate2 *update, gpointer user_data) |
Enumerations | |
enum | FlEngineError { FL_ENGINE_ERROR_FAILED } |
Functions | |
GQuark | fl_engine_error_quark (void) G_GNUC_CONST |
FlEngine * | fl_engine_new_with_renderer (FlDartProject *project, FlRenderer *renderer) |
FlRenderer * | fl_engine_get_renderer (FlEngine *engine) |
FlDisplayMonitor * | fl_engine_get_display_monitor (FlEngine *engine) |
gboolean | fl_engine_start (FlEngine *engine, GError **error) |
FlutterEngineProcTable * | fl_engine_get_embedder_api (FlEngine *engine) |
void | fl_engine_notify_display_update (FlEngine *engine, const FlutterEngineDisplay *displays, size_t displays_length) |
FlutterViewId | fl_engine_add_view (FlEngine *engine, size_t width, size_t height, double pixel_ratio, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
gboolean | fl_engine_add_view_finish (FlEngine *engine, GAsyncResult *result, GError **error) |
void | fl_engine_remove_view (FlEngine *engine, FlutterViewId view_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
gboolean | fl_engine_remove_view_finish (FlEngine *engine, GAsyncResult *result, GError **error) |
void | fl_engine_set_platform_message_handler (FlEngine *engine, FlEnginePlatformMessageHandler handler, gpointer user_data, GDestroyNotify destroy_notify) |
void | fl_engine_set_update_semantics_handler (FlEngine *engine, FlEngineUpdateSemanticsHandler handler, gpointer user_data, GDestroyNotify destroy_notify) |
void | fl_engine_send_window_metrics_event (FlEngine *engine, FlutterEngineDisplayId display_id, FlutterViewId view_id, size_t width, size_t height, double pixel_ratio) |
void | fl_engine_send_mouse_pointer_event (FlEngine *engine, FlutterViewId view_id, FlutterPointerPhase phase, size_t timestamp, double x, double y, FlutterPointerDeviceKind device_kind, double scroll_delta_x, double scroll_delta_y, int64_t buttons) |
void | fl_engine_send_touch_up_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
void | fl_engine_send_touch_down_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
void | fl_engine_send_touch_move_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
void | fl_engine_send_touch_add_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
void | fl_engine_send_touch_remove_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, int32_t device) |
void | fl_engine_send_pointer_pan_zoom_event (FlEngine *engine, FlutterViewId view_id, size_t timestamp, double x, double y, FlutterPointerPhase phase, double pan_x, double pan_y, double scale, double rotation) |
void | fl_engine_send_key_event (FlEngine *engine, const FlutterKeyEvent *event, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
gboolean | fl_engine_send_key_event_finish (FlEngine *engine, GAsyncResult *result, gboolean *handled, GError **error) |
void | fl_engine_dispatch_semantics_action (FlEngine *engine, uint64_t id, FlutterSemanticsAction action, GBytes *data) |
gboolean | fl_engine_send_platform_message_response (FlEngine *engine, const FlutterPlatformMessageResponseHandle *handle, GBytes *response, GError **error) |
void | fl_engine_send_platform_message (FlEngine *engine, const gchar *channel, GBytes *message, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) |
GBytes * | fl_engine_send_platform_message_finish (FlEngine *engine, GAsyncResult *result, GError **error) |
FlTaskRunner * | fl_engine_get_task_runner (FlEngine *engine) |
void | fl_engine_execute_task (FlEngine *engine, FlutterTask *task) |
gboolean | fl_engine_mark_texture_frame_available (FlEngine *engine, int64_t texture_id) |
gboolean | fl_engine_register_external_texture (FlEngine *engine, int64_t texture_id) |
gboolean | fl_engine_unregister_external_texture (FlEngine *engine, int64_t texture_id) |
void | fl_engine_update_accessibility_features (FlEngine *engine, int32_t flags) |
void | fl_engine_request_app_exit (FlEngine *engine) |
FlMouseCursorHandler * | fl_engine_get_mouse_cursor_handler (FlEngine *engine) |
typedef gboolean(* FlEnginePlatformMessageHandler) (FlEngine *engine, const gchar *channel, GBytes *message, const FlutterPlatformMessageResponseHandle *response_handle, gpointer user_data) |
FlEnginePlatformMessageHandler: @engine: an #FlEngine. @channel: channel message received on. @message: message content received from Dart. @response_handle: a handle to respond to the message with. @user_data: (closure): data provided when registering this handler.
Function called when platform messages are received.
Returns: TRUE if message has been accepted.
Definition at line 43 of file fl_engine_private.h.
typedef void(* FlEngineUpdateSemanticsHandler) (FlEngine *engine, const FlutterSemanticsUpdate2 *update, gpointer user_data) |
FlEngineUpdateSemanticsHandler: @engine: an #FlEngine. @node: semantic node information. @user_data: (closure): data provided when registering this handler.
Function called when semantics node updates are received.
Definition at line 58 of file fl_engine_private.h.
enum FlEngineError |
FlEngineError: Errors for #FlEngine objects to set on failures.
Enumerator | |
---|---|
FL_ENGINE_ERROR_FAILED |
Definition at line 25 of file fl_engine_private.h.
FlutterViewId fl_engine_add_view | ( | FlEngine * | engine, |
size_t | width, | ||
size_t | height, | ||
double | pixel_ratio, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | user_data | ||
) |
fl_engine_add_view: @engine: an #FlEngine. @width: width of view in pixels. @height: height of view in pixels. @pixel_ratio: scale factor for view. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the view is added. @user_data: (closure): user data to pass to @callback.
Asynchronously add a new view. The returned view ID should not be used until this function completes.
Returns: the ID for the view.
Definition at line 678 of file fl_engine.cc.
References FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), height, user_data, view_added_cb(), and width.
Referenced by fl_view_new_for_engine(), and TEST().
gboolean fl_engine_add_view_finish | ( | FlEngine * | engine, |
GAsyncResult * | result, | ||
GError ** | error | ||
) |
fl_engine_add_view_finish: @engine: an #FlEngine.
Completes request started with fl_engine_add_view().
Returns: TRUE on success.
Definition at line 721 of file fl_engine.cc.
References error.
Referenced by add_view_cb(), add_view_engine_error_cb(), add_view_error_cb(), and view_added_cb().
void fl_engine_dispatch_semantics_action | ( | FlEngine * | engine, |
uint64_t | id, | ||
FlutterSemanticsAction | action, | ||
GBytes * | data | ||
) |
fl_engine_dispatch_semantics_action: @engine: an #FlEngine. @id: the semantics action identifier. @action: the action being dispatched. @data: (allow-none): data associated with the action.
Definition at line 1161 of file fl_engine.cc.
Referenced by fl_accessible_node_perform_action_impl(), and TEST().
GQuark fl_engine_error_quark | ( | void | ) |
void fl_engine_execute_task | ( | FlEngine * | engine, |
FlutterTask * | task | ||
) |
fl_engine_execute_task: @engine: an #FlEngine. @task: a #FlutterTask to execute.
Executes given Flutter task.
Definition at line 1214 of file fl_engine.cc.
Referenced by fl_task_runner_process_expired_tasks_locked().
FlDisplayMonitor* fl_engine_get_display_monitor | ( | FlEngine * | engine | ) |
fl_engine_get_display_monitor: @engine: an #FlEngine.
Gets the display monitor used by this engine.
Returns: an #FlDisplayMonitor.
Definition at line 539 of file fl_engine.cc.
Referenced by handle_geometry_changed().
FlutterEngineProcTable* fl_engine_get_embedder_api | ( | FlEngine * | engine | ) |
fl_engine_get_embedder_api: @engine: an #FlEngine.
Gets the embedder API proc table, allowing modificiations for unit testing.
Returns: a mutable pointer to the embedder API proc table.
Definition at line 661 of file fl_engine.cc.
Referenced by TEST().
FlMouseCursorHandler* fl_engine_get_mouse_cursor_handler | ( | FlEngine * | engine | ) |
fl_engine_get_mouse_cursor_handler: @engine: an #FlEngine.
Gets the mouse cursor handler used by this engine.
Returns: a #FlMouseCursorHandler.
Definition at line 1241 of file fl_engine.cc.
Referenced by cursor_changed_cb(), fl_view_dispose(), and setup_cursor().
FlRenderer* fl_engine_get_renderer | ( | FlEngine * | engine | ) |
fl_engine_get_renderer: @engine: an #FlEngine.
Gets the renderer used by this engine.
Returns: an #FlRenderer.
Definition at line 534 of file fl_engine.cc.
Referenced by fl_view_new(), and fl_view_new_for_engine().
FlTaskRunner* fl_engine_get_task_runner | ( | FlEngine * | engine | ) |
fl_engine_get_task_runner: @engine: an #FlEngine.
Returns: task runner responsible for scheduling Flutter tasks.
Definition at line 1209 of file fl_engine.cc.
Referenced by fl_renderer_unblock_main_thread(), and fl_renderer_wait_for_frame().
gboolean fl_engine_mark_texture_frame_available | ( | FlEngine * | engine, |
int64_t | texture_id | ||
) |
fl_engine_mark_texture_frame_available: @engine: an #FlEngine. @texture_id: the identifier of the texture whose frame has been updated.
Tells the Flutter engine that a new texture frame is available for the given texture.
Returns: TRUE on success.
Definition at line 1182 of file fl_engine.cc.
References texture_id.
Referenced by mark_texture_frame_available().
FlEngine* fl_engine_new_with_renderer | ( | FlDartProject * | project, |
FlRenderer * | renderer | ||
) |
fl_engine_new_with_renderer: @project: an #FlDartProject. @renderer: an #FlRenderer.
Creates new Flutter engine.
Returns: a new #FlEngine.
Definition at line 509 of file fl_engine.cc.
References fl_binary_messenger_new(), and fl_renderer_set_engine().
Referenced by fl_engine_new(), and fl_engine_new_headless().
void fl_engine_notify_display_update | ( | FlEngine * | engine, |
const FlutterEngineDisplay * | displays, | ||
size_t | displays_length | ||
) |
fl_engine_notify_display_update: @engine: an #FlEngine. @displays: displays present on the system. @displays_length: length of @displays.
Notify the current displays that are in the system.
Definition at line 665 of file fl_engine.cc.
Referenced by notify_display_update(), and TEST().
gboolean fl_engine_register_external_texture | ( | FlEngine * | engine, |
int64_t | texture_id | ||
) |
fl_engine_register_external_texture: @engine: an #FlEngine. @texture_id: the identifier of the texture that is available.
Tells the Flutter engine that a new external texture is available.
Returns: TRUE on success.
Definition at line 1189 of file fl_engine.cc.
References texture_id.
Referenced by register_texture().
void fl_engine_remove_view | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | user_data | ||
) |
fl_engine_remove_view: @engine: an #FlEngine. @view_id: ID to remove. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the view is added. @user_data: (closure): user data to pass to @callback.
Removes a view previously added with fl_engine_add_view().
Definition at line 728 of file fl_engine.cc.
References FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), user_data, and view_removed_cb().
Referenced by fl_view_dispose(), and TEST().
gboolean fl_engine_remove_view_finish | ( | FlEngine * | engine, |
GAsyncResult * | result, | ||
GError ** | error | ||
) |
fl_engine_remove_view_finish: @engine: an #FlEngine.
Completes request started with fl_engine_remove_view().
Returns: TRUE on succcess.
Definition at line 753 of file fl_engine.cc.
References error.
Referenced by remove_view_cb(), remove_view_engine_error_cb(), and remove_view_error_cb().
void fl_engine_request_app_exit | ( | FlEngine * | engine | ) |
fl_engine_request_app_exit: @engine: an #FlEngine.
Request the application exits.
Definition at line 1236 of file fl_engine.cc.
References fl_platform_handler_request_app_exit().
Referenced by window_delete_event_cb().
void fl_engine_send_key_event | ( | FlEngine * | engine, |
const FlutterKeyEvent * | event, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | user_data | ||
) |
fl_engine_send_key_event: @engine: an #FlEngine. @event: key event to send. @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied. @user_data: (closure): user data to pass to @callback.
Send a key event to the engine.
Definition at line 1121 of file fl_engine.cc.
References FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), send_key_event_cb(), and user_data.
Referenced by fl_keyboard_manager_new(), and TEST().
gboolean fl_engine_send_key_event_finish | ( | FlEngine * | engine, |
GAsyncResult * | result, | ||
gboolean * | handled, | ||
GError ** | error | ||
) |
fl_engine_send_key_event_finish: @engine: an #FlEngine.
Completes request started with fl_engine_send_key_event().
Returns: TRUE on success.
Definition at line 1144 of file fl_engine.cc.
Referenced by TEST().
void fl_engine_send_mouse_pointer_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
FlutterPointerPhase | phase, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
FlutterPointerDeviceKind | device_kind, | ||
double | scroll_delta_x, | ||
double | scroll_delta_y, | ||
int64_t | buttons | ||
) |
fl_engine_send_mouse_pointer_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @phase: mouse phase. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device_kind: kind of pointing device. @scroll_delta_x: x offset of scroll. @scroll_delta_y: y offset of scroll. @buttons: buttons that are pressed.
Sends a mouse pointer event to the engine.
Definition at line 918 of file fl_engine.cc.
References kMousePointerDeviceId.
Referenced by ensure_pointer_added(), fl_pointer_manager_handle_button_press(), fl_pointer_manager_handle_button_release(), fl_pointer_manager_handle_leave(), fl_pointer_manager_handle_motion(), fl_scrolling_manager_handle_scroll_event(), and TEST().
void fl_engine_send_platform_message | ( | FlEngine * | engine, |
const gchar * | channel, | ||
GBytes * | message, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | user_data | ||
) |
fl_engine_send_platform_message: @engine: an #FlEngine. @channel: channel to send to. @message: (allow-none): message buffer to send or NULL for an empty message @cancellable: (allow-none): a #GCancellable or NULL. @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied. @user_data: (closure): user data to pass to @callback.
Asynchronously sends a platform message.
Definition at line 828 of file fl_engine.cc.
References FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), fl_engine_platform_message_response_cb(), and user_data.
Referenced by send_on_channel(), and TEST().
GBytes* fl_engine_send_platform_message_finish | ( | FlEngine * | engine, |
GAsyncResult * | result, | ||
GError ** | error | ||
) |
fl_engine_send_platform_message_finish: @engine: an #FlEngine.
Completes request started with fl_engine_send_platform_message().
Returns: message response on success or NULL on error.
Definition at line 887 of file fl_engine.cc.
References error.
Referenced by send_on_channel_finish().
gboolean fl_engine_send_platform_message_response | ( | FlEngine * | engine, |
const FlutterPlatformMessageResponseHandle * | handle, | ||
GBytes * | response, | ||
GError ** | error | ||
) |
fl_engine_send_platform_message_response: @engine: an #FlEngine. @handle: handle that was provided in FlEnginePlatformMessageHandler. @response: (allow-none): response to send or NULL for an empty response. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Responds to a platform message.
Returns: TRUE on success.
Definition at line 796 of file fl_engine.cc.
References error, FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), and TRUE.
Referenced by fl_engine_platform_message_cb(), send_response(), and TEST().
void fl_engine_send_pointer_pan_zoom_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
FlutterPointerPhase | phase, | ||
double | pan_x, | ||
double | pan_y, | ||
double | scale, | ||
double | rotation | ||
) |
fl_engine_send_pointer_pan_zoom_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @phase: mouse phase. @pan_x: x offset of the pan/zoom in pixels. @pan_y: y offset of the pan/zoom in pixels. @scale: scale of the pan/zoom. @rotation: rotation of the pan/zoom in radians.
Sends a pan/zoom pointer event to the engine.
Definition at line 1082 of file fl_engine.cc.
References kPointerPanZoomDeviceId.
Referenced by fl_scrolling_manager_handle_rotation_begin(), fl_scrolling_manager_handle_rotation_end(), fl_scrolling_manager_handle_rotation_update(), fl_scrolling_manager_handle_scroll_event(), fl_scrolling_manager_handle_zoom_begin(), fl_scrolling_manager_handle_zoom_end(), fl_scrolling_manager_handle_zoom_update(), and TEST().
void fl_engine_send_touch_add_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
int32_t | device | ||
) |
fl_engine_send_touch_add_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch add event to the engine.
Definition at line 1030 of file fl_engine.cc.
Referenced by ensure_touch_added().
void fl_engine_send_touch_down_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
int32_t | device | ||
) |
fl_engine_send_touch_down_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch down event to the engine.
Definition at line 978 of file fl_engine.cc.
Referenced by fl_touch_manager_handle_touch_event().
void fl_engine_send_touch_move_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
int32_t | device | ||
) |
fl_engine_send_touch_move_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch move event to the engine.
Definition at line 1004 of file fl_engine.cc.
Referenced by fl_touch_manager_handle_touch_event().
void fl_engine_send_touch_remove_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
int32_t | device | ||
) |
fl_engine_send_touch_remove_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch remove event to the engine.
Definition at line 1056 of file fl_engine.cc.
Referenced by fl_touch_manager_handle_touch_event().
void fl_engine_send_touch_up_event | ( | FlEngine * | engine, |
FlutterViewId | view_id, | ||
size_t | timestamp, | ||
double | x, | ||
double | y, | ||
int32_t | device | ||
) |
fl_engine_send_touch_up_event: @engine: an #FlEngine. @view_id: the view that the event occured on. @timestamp: time when event occurred in microseconds. @x: x location of mouse cursor. @y: y location of mouse cursor. @device: device id.
Sends a touch up event to the engine.
Definition at line 952 of file fl_engine.cc.
Referenced by fl_touch_manager_handle_touch_event().
void fl_engine_send_window_metrics_event | ( | FlEngine * | engine, |
FlutterEngineDisplayId | display_id, | ||
FlutterViewId | view_id, | ||
size_t | width, | ||
size_t | height, | ||
double | pixel_ratio | ||
) |
fl_engine_send_window_metrics_event: @engine: an #FlEngine. @display_id: the display this view is rendering on. @view_id: the view that the event occured on. @width: width of the window in pixels. @height: height of the window in pixels. @pixel_ratio: scale factor for window.
Sends a window metrics event to the engine.
Definition at line 896 of file fl_engine.cc.
Referenced by handle_geometry_changed(), and TEST().
void fl_engine_set_platform_message_handler | ( | FlEngine * | engine, |
FlEnginePlatformMessageHandler | handler, | ||
gpointer | user_data, | ||
GDestroyNotify | destroy_notify | ||
) |
fl_engine_set_platform_message_handler: @engine: an #FlEngine. @handler: function to call when a platform message is received. @user_data: (closure): user data to pass to @handler. @destroy_notify: (allow-none): a function which gets called to free @user_data, or NULL.
Registers the function called when a platform message is received. Call fl_engine_send_platform_message_response() with the response to this message. Ownership of #FlutterPlatformMessageResponseHandle is transferred to the caller, and the message must be responded to avoid memory leaks.
Definition at line 760 of file fl_engine.cc.
References user_data.
Referenced by fl_binary_messenger_new().
void fl_engine_set_update_semantics_handler | ( | FlEngine * | engine, |
FlEngineUpdateSemanticsHandler | handler, | ||
gpointer | user_data, | ||
GDestroyNotify | destroy_notify | ||
) |
fl_engine_set_update_semantics_handler: @engine: an #FlEngine. @handler: function to call when a semantics update is received. @user_data: (closure): user data to pass to @handler. @destroy_notify: (allow-none): a function which gets called to free @user_data, or NULL.
Registers the function called when a semantics update is received.
Definition at line 778 of file fl_engine.cc.
References user_data.
Referenced by fl_view_dispose(), and fl_view_new().
gboolean fl_engine_start | ( | FlEngine * | engine, |
GError ** | error | ||
) |
fl_engine_start: @engine: an #FlEngine. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Starts the Flutter engine.
Returns: TRUE on success.
Definition at line 544 of file fl_engine.cc.
References args, compositor_collect_backing_store_callback(), compositor_create_backing_store_callback(), compositor_present_view_callback(), error, fl_dart_project_get_aot_library_path(), fl_dart_project_get_assets_path(), fl_dart_project_get_dart_entrypoint_arguments(), fl_dart_project_get_icu_data_path(), fl_display_monitor_new(), fl_display_monitor_start(), FL_ENGINE_ERROR_FAILED, fl_engine_error_quark(), fl_engine_gl_clear_current(), fl_engine_gl_external_texture_frame_callback(), fl_engine_gl_get_fbo(), fl_engine_gl_make_current(), fl_engine_gl_make_resource_current(), fl_engine_gl_present(), fl_engine_gl_proc_resolver(), fl_engine_on_pre_engine_restart_cb(), fl_engine_platform_message_cb(), fl_engine_post_task(), fl_engine_runs_task_on_current_thread(), fl_engine_update_semantics_cb(), fl_mouse_cursor_handler_new(), fl_platform_handler_new(), fl_settings_handler_new(), fl_settings_handler_start(), fl_settings_new(), fl_task_runner_new(), flutter::GetSwitchesFromEnvironment(), kPlatformTaskRunnerIdentifier, setup_locales(), and TRUE.
Referenced by realize_cb(), and TEST().
gboolean fl_engine_unregister_external_texture | ( | FlEngine * | engine, |
int64_t | texture_id | ||
) |
fl_engine_unregister_external_texture: @engine: an #FlEngine. @texture_id: the identifier of the texture that is not available anymore.
Tells the Flutter engine that an existing external texture is not available anymore.
Returns: TRUE on success.
Definition at line 1196 of file fl_engine.cc.
References texture_id.
Referenced by unregister_texture().
void fl_engine_update_accessibility_features | ( | FlEngine * | engine, |
int32_t | flags | ||
) |
fl_engine_update_accessibility_features: @engine: an #FlEngine. @flags: the features to enable in the accessibility tree.
Tells the Flutter engine to update the flags on the accessibility tree.
Definition at line 1225 of file fl_engine.cc.
References flags.
Referenced by update_settings().