#include "e_comp_screen_intern.h"
#include "e_comp_wl_intern.h"
#include "e_client_intern.h"
+#include "e_hwc_intern.h"
#include <sys/xattr.h>
#include "services/e_service_quickpanel.h"
#include "e_error_intern.h"
#include "e_pointer_intern.h"
#include "e_output_intern.h"
+#include "e_hwc_intern.h"
#include "Eeze.h"
#include <tizen-extension-server-protocol.h>
#include "e.h"
+#include "e_hwc_intern.h"
#include "e_utils_intern.h"
#include "e_comp_screen_intern.h"
#include "e_comp_intern.h"
#define E_HWC_H
#include <tdm.h>
-#include "e_hwc_window.h"
-
-struct _E_Hwc_Hook
-{
- EINA_INLIST;
- E_Hwc_Hook_Point hookpoint;
- E_Hwc_Hook_Cb func;
- void *data;
- unsigned char delete_me : 1;
-};
-
-struct _E_Hwc_Intercept_Hook
-{
- EINA_INLIST;
- E_Hwc_Intercept_Hook_Point hookpoint;
- E_Hwc_Intercept_Hook_Cb func;
- void *data;
- unsigned char delete_me : 1;
-};
-
-struct _E_Hwc_Sync_Callback
-{
- E_Hwc *hwc;
- void *data;
- E_Hwc_Sync_Done_Cb cb;
- Eina_Bool done;
-};
-
-struct _E_Hwc_Presentation_Callback
-{
- E_Hwc *hwc;
- void *data;
- E_Hwc_Presentation_Done_Cb cb;
-
- Eina_Bool done;
- E_Hwc_Presentation_Callback_List *list;
-};
struct _E_Hwc
{
E_API extern int E_EVENT_HWC_ACTIVE;
E_API extern int E_EVENT_HWC_DEACTIVE;
-EINTERN Eina_Bool e_hwc_init(void);
-EINTERN void e_hwc_deinit(void);
-
-EINTERN Eina_Bool e_hwc_ecore_evas_init(void);
-EINTERN void e_hwc_ecore_evas_deinit(void);
-
-EINTERN E_Hwc *e_hwc_new(E_Output *output, Eina_Bool primary_output);
-EINTERN void e_hwc_del(E_Hwc *hwc);
-EINTERN E_Hwc_Mode e_hwc_mode_get(E_Hwc *hwc);
-EINTERN void e_hwc_deactive_set(E_Hwc *hwc, Eina_Bool set);
-EINTERN Eina_Bool e_hwc_deactive_get(E_Hwc *hwc);
-EINTERN Eina_Bool e_hwc_client_is_above_hwc(E_Client *ec, E_Client *hwc_ec);
-EINTERN int e_hwc_output_index_get(E_Hwc *hwc);
-EINTERN tbm_surface_queue_h e_hwc_tbm_surface_queue_get(E_Hwc *hwc);
-
-EINTERN void e_hwc_norender_push(E_Hwc *hwc);
-EINTERN void e_hwc_norender_pop(E_Hwc *hwc);
-EINTERN int e_hwc_norender_get(E_Hwc *hwc);
-
-EINTERN E_Hwc_Hook *e_hwc_hook_add(E_Hwc_Hook_Point hookpoint, E_Hwc_Hook_Cb func, const void *data);
-EINTERN void e_hwc_hook_del(E_Hwc_Hook *ch);
-
-EINTERN Eina_Bool e_hwc_intercept_hook_call(E_Hwc_Intercept_Hook_Point hookpoint, E_Hwc *hwc);
-
E_API E_Hwc_Intercept_Hook *e_hwc_intercept_hook_add(E_Hwc_Intercept_Hook_Point hookpoint, E_Hwc_Intercept_Hook_Cb func, const void *data);
E_API void e_hwc_intercept_hook_del(E_Hwc_Intercept_Hook *ch);
E_API Eina_Bool e_client_hwc_property_get(E_Client *ec, unsigned int id, hwc_value *value);
E_API Eina_Bool e_client_hwc_property_set(E_Client *ec, unsigned int id, hwc_value value);
-EINTERN Eina_Bool e_client_hwc_on_plane(E_Client *ec);
E_API Eina_Bool e_client_hwc_visible_skip_set(E_Client *ec, Eina_Bool skip);
-EINTERN Eina_Bool e_hwc_sync_callback_call(E_Hwc_Sync_Callback *sync_callback);
-
-EINTERN void *e_hwc_gbm_surface_get(E_Hwc *hwc, int *width, int *height, int *format);
-
/* Once callback of E_Hwc_Sync_Callback is called, E_Hwc_Sync_Callback should be destroyed */
E_API E_Hwc_Sync_Callback *e_hwc_sync_callback_add(E_Hwc *hwc, E_Hwc_Sync_Done_Cb cb, void *data);
E_API void e_hwc_sync_callback_del(E_Hwc_Sync_Callback *sync_callback);
E_API E_Hwc_Presentation_Callback *e_client_hwc_presentation_callback_add(E_Client *ec, E_Hwc_Presentation_Done_Cb cb, void *data);
E_API void e_hwc_presentation_callback_del(E_Hwc_Presentation_Callback *callback);
-EINTERN Eina_Bool e_hwc_presentation_callback_call(E_Hwc_Presentation_Callback *callback);
-
-EINTERN void e_hwc_presentation_callback_list_init(E_Hwc_Presentation_Callback_List *list);
-EINTERN void e_hwc_presentation_callback_list_finish(E_Hwc_Presentation_Callback_List *list);
-EINTERN Eina_Bool e_hwc_presentation_callback_list_set(E_Hwc_Presentation_Callback_List *list, E_Hwc_Presentation_Callback *callback);
-EINTERN Eina_Bool e_hwc_presentation_callback_list_unset(E_Hwc_Presentation_Callback_List *list, E_Hwc_Presentation_Callback *callback);
-EINTERN void e_hwc_presentation_callback_list_merge(E_Hwc_Presentation_Callback_List *inout, E_Hwc_Presentation_Callback_List *input);
-EINTERN void e_hwc_presentation_callback_list_call(E_Hwc_Presentation_Callback_List *list);
-
#endif
#endif
--- /dev/null
+#ifndef E_HWC_INTERN_H
+#define E_HWC_INTERN_H
+
+struct _E_Hwc_Hook
+{
+ EINA_INLIST;
+ E_Hwc_Hook_Point hookpoint;
+ E_Hwc_Hook_Cb func;
+ void *data;
+ unsigned char delete_me : 1;
+};
+
+struct _E_Hwc_Intercept_Hook
+{
+ EINA_INLIST;
+ E_Hwc_Intercept_Hook_Point hookpoint;
+ E_Hwc_Intercept_Hook_Cb func;
+ void *data;
+ unsigned char delete_me : 1;
+};
+
+struct _E_Hwc_Sync_Callback
+{
+ E_Hwc *hwc;
+ void *data;
+ E_Hwc_Sync_Done_Cb cb;
+ Eina_Bool done;
+};
+
+struct _E_Hwc_Presentation_Callback
+{
+ E_Hwc *hwc;
+ void *data;
+ E_Hwc_Presentation_Done_Cb cb;
+
+ Eina_Bool done;
+ E_Hwc_Presentation_Callback_List *list;
+};
+
+EINTERN Eina_Bool e_hwc_init(void);
+EINTERN void e_hwc_deinit(void);
+
+EINTERN Eina_Bool e_hwc_ecore_evas_init(void);
+EINTERN void e_hwc_ecore_evas_deinit(void);
+
+EINTERN E_Hwc *e_hwc_new(E_Output *output, Eina_Bool primary_output);
+EINTERN void e_hwc_del(E_Hwc *hwc);
+EINTERN E_Hwc_Mode e_hwc_mode_get(E_Hwc *hwc);
+EINTERN void e_hwc_deactive_set(E_Hwc *hwc, Eina_Bool set);
+EINTERN Eina_Bool e_hwc_deactive_get(E_Hwc *hwc);
+EINTERN Eina_Bool e_hwc_client_is_above_hwc(E_Client *ec, E_Client *hwc_ec);
+EINTERN int e_hwc_output_index_get(E_Hwc *hwc);
+EINTERN Eina_Bool e_client_hwc_on_plane(E_Client *ec);
+
+EINTERN void e_hwc_norender_push(E_Hwc *hwc);
+EINTERN void e_hwc_norender_pop(E_Hwc *hwc);
+EINTERN int e_hwc_norender_get(E_Hwc *hwc);
+
+EINTERN tbm_surface_queue_h e_hwc_tbm_surface_queue_get(E_Hwc *hwc);
+EINTERN void *e_hwc_gbm_surface_get(E_Hwc *hwc, int *width, int *height, int *format);
+
+EINTERN E_Hwc_Hook *e_hwc_hook_add(E_Hwc_Hook_Point hookpoint, E_Hwc_Hook_Cb func, const void *data);
+EINTERN void e_hwc_hook_del(E_Hwc_Hook *ch);
+
+EINTERN Eina_Bool e_hwc_intercept_hook_call(E_Hwc_Intercept_Hook_Point hookpoint, E_Hwc *hwc);
+
+EINTERN Eina_Bool e_hwc_sync_callback_call(E_Hwc_Sync_Callback *sync_callback);
+
+EINTERN Eina_Bool e_hwc_presentation_callback_call(E_Hwc_Presentation_Callback *callback);
+
+EINTERN void e_hwc_presentation_callback_list_init(E_Hwc_Presentation_Callback_List *list);
+EINTERN void e_hwc_presentation_callback_list_finish(E_Hwc_Presentation_Callback_List *list);
+EINTERN Eina_Bool e_hwc_presentation_callback_list_set(E_Hwc_Presentation_Callback_List *list, E_Hwc_Presentation_Callback *callback);
+EINTERN Eina_Bool e_hwc_presentation_callback_list_unset(E_Hwc_Presentation_Callback_List *list, E_Hwc_Presentation_Callback *callback);
+EINTERN void e_hwc_presentation_callback_list_merge(E_Hwc_Presentation_Callback_List *inout, E_Hwc_Presentation_Callback_List *input);
+EINTERN void e_hwc_presentation_callback_list_call(E_Hwc_Presentation_Callback_List *list);
+
+#endif
#include "e_comp_intern.h"
#include "services/e_service_quickpanel.h"
#include "e_output_intern.h"
+#include "e_hwc_intern.h"
#include <wayland-tbm-server.h>
#include "e_pointer_intern.h"
#include "e_pixmap_intern.h"
#include "e_presentation_time_intern.h"
+#include "e_hwc_intern.h"
# include <pixman.h>
# include <wayland-tbm-server.h>
#include "e_comp_wl_renderer_intern.h"
#include "e_comp_wl_tbm_intern.h"
#include "e_pixmap_intern.h"
+#include "e_hwc_intern.h"
# include <gbm.h>
# include <wayland-tbm-server.h>
#include "e_pixmap_intern.h"
#include "e_presentation_time_intern.h"
#include "e_output_intern.h"
+#include "e_hwc_intern.h"
# include <Evas_Engine_GL_Tbm.h>
# include <Evas_Engine_Software_Tbm.h>
#include "e_plane.h"
#include "e_plane_renderer.h"
#include "e_output.h"
-#include "e_hwc.h"
#include "e_hwc_planes.h"
#include "e_hwc_windows.h"
#include "e_hwc_window.h"
#include "e_hwc_window_queue.h"
+#include "e_hwc.h"
#include "e_presentation_time.h"
#include "e_explicit_sync.h"
#include "e_egl_sync.h"
#include "e_output_intern.h"
#include "e_module_intern.h"
#include "e_magnifier_intern.h"
+#include "e_hwc_intern.h"
#include <tbm_bufmgr.h>
#include <tbm_surface.h>
#include "e_comp_intern.h"
#include "e_input_intern.h"
#include "e_error_intern.h"
+#include "e_hwc_intern.h"
#include <device/board-internal.h>