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 tbm_surface_info_s current_sinfo;
84 tbm_surface_h current_surface;
87 Eina_List *ani_handles;
89 pui_backend_module_data *backend_module_data;
92 struct _pui_module_data
95 pui_backend_module *backend_module_info;
96 pui_backend_module_data *backend_module_data;
103 pui_ani_control_buffer *
104 pui_ani_get_buffer(pui_ani_h ani_h);
107 pui_ani_set_buffer(pui_ani_h ani_h, pui_ani_control_buffer *buffer);
110 pui_ani_update(pui_ani_h ani_h);
113 pui_ani_add_frame_cb(pui_ani_t *ani, pui_bool (*frame_cb)(void *data, int serial), double frame_interval);
116 pui_ani_remove_frame_cb(pui_ani_t *ani);
119 pui_ani_status_update(pui_ani_t *ani, pui_ani_status status);
122 pui_ani_status_get(pui_ani_t *ani);
124 pui_backend_ani_data *
125 pui_ani_get_ani_data(pui_ani_t *ani);
131 #endif//_LIBPUI_INTERNAL_H_