2 * Copyright © 2019 Samsung Electronics co., Ltd. All Rights Reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial
14 * portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
20 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 #ifndef _LIBPUI_INTERNAL_H_
27 #define _LIBPUI_INTERNAL_H_
29 #define EFL_BETA_API_SUPPORT
32 #include <Ecore_Wl2.h>
34 #include <wayland-tbm-client.h>
35 #include <tbm_surface_internal.h>
36 #include "PUI_common.h"
47 Eina_Array *ecore_event_hdls;
48 Ecore_Wl2_Frame_Cb_Handle *frame_done_cb;
60 pui_ani_status status;
63 pui_ani_control_buffer *buffer;
65 Eina_Bool (*frame_cb)(void *data);
66 pui_bool (*backend_frame_cb)(void *data, int serial);
68 double frame_interval;
69 Ecore_Timer *frame_cb_timer;
71 pui_backend_ani_data *ani_data;
76 Ecore_Wl2_Window *win;
77 Ecore_Wl2_Display *ewd;
80 struct wayland_tbm_client *wl_tbm_client;
81 tbm_surface_queue_h tbm_queue;
83 pui_ani_h current_ani_h;
84 tbm_surface_info_s current_sinfo;
85 tbm_surface_h current_surface;
87 pui_bool manual_render;
89 Eina_List *ani_handles;
91 pui_backend_module_data *backend_module_data;
94 struct _pui_module_data
97 pui_backend_module *backend_module_info;
98 pui_backend_module_data *backend_module_data;
105 pui_ani_control_buffer *
106 pui_ani_get_buffer(pui_ani_h ani_h);
109 pui_ani_set_buffer(pui_ani_h ani_h, pui_ani_control_buffer *buffer);
112 pui_ani_update(pui_ani_h ani_h);
115 pui_ani_add_frame_cb(pui_ani_t *ani, pui_bool (*frame_cb)(void *data, int serial), double frame_interval);
118 pui_ani_remove_frame_cb(pui_ani_t *ani);
121 pui_ani_status_update(pui_ani_t *ani, pui_ani_status status);
124 pui_ani_status_get(pui_ani_t *ani);
126 pui_backend_ani_data *
127 pui_ani_get_ani_data(pui_ani_t *ani);
133 #endif//_LIBPUI_INTERNAL_H_