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"
42 struct _pui_ani_control_buffer
53 Eina_Array *ecore_event_hdls;
54 Ecore_Wl2_Frame_Cb_Handle *frame_done_cb;
66 pui_ani_status status;
69 pui_ani_control_buffer *buffer;
71 Eina_Bool (*frame_cb)(void *data);
72 pui_bool (*backend_frame_cb)(void *data, int serial);
74 double frame_interval;
75 Ecore_Timer *frame_cb_timer;
77 pui_backend_ani_data *ani_data;
82 Ecore_Wl2_Window *win;
83 Ecore_Wl2_Display *ewd;
86 struct wayland_tbm_client *wl_tbm_client;
87 tbm_surface_queue_h tbm_queue;
89 tbm_surface_info_s current_sinfo;
90 tbm_surface_h current_surface;
93 Eina_List *ani_handles;
95 pui_backend_module_data *backend_module_data;
98 struct _pui_module_data
101 pui_backend_module *backend_module_info;
102 pui_backend_module_data *backend_module_data;
109 pui_ani_control_buffer *
110 pui_ani_get_buffer(pui_ani_h ani_h);
113 pui_ani_set_buffer(pui_ani_h ani_h, pui_ani_control_buffer *buffer);
116 pui_ani_update(pui_ani_h ani_h);
119 pui_ani_add_frame_cb(pui_ani_t *ani, pui_bool (*frame_cb)(void *data, int serial), double frame_interval);
122 pui_ani_remove_frame_cb(pui_ani_t *ani);
125 pui_ani_status_update(pui_ani_t *ani, pui_ani_status status);
128 pui_ani_status_get(pui_ani_t *ani);
130 pui_backend_ani_data *
131 pui_ani_get_ani_data(pui_ani_t *ani);
137 #endif//_LIBPUI_INTERNAL_H_