2013-04-29 04:40:24 -07:00
|
|
|
#ifndef EVAS_ENGINE_H
|
|
|
|
# define EVAS_ENGINE_H
|
|
|
|
|
2015-04-08 10:57:58 -07:00
|
|
|
# include "evas_common_private.h"
|
|
|
|
# include "evas_macros.h"
|
|
|
|
# include "evas_private.h"
|
|
|
|
# include "Evas.h"
|
|
|
|
# include "Evas_Engine_Drm.h"
|
2014-02-10 23:09:39 -08:00
|
|
|
|
2014-06-25 01:47:08 -07:00
|
|
|
#include "../software_generic/Evas_Engine_Software_Generic.h"
|
|
|
|
|
2013-04-29 04:40:24 -07:00
|
|
|
extern int _evas_engine_drm_log_dom;
|
|
|
|
|
|
|
|
# ifdef ERR
|
|
|
|
# undef ERR
|
|
|
|
# endif
|
|
|
|
# define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_drm_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
# ifdef DBG
|
|
|
|
# undef DBG
|
|
|
|
# endif
|
|
|
|
# define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_drm_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
# ifdef INF
|
|
|
|
# undef INF
|
|
|
|
# endif
|
|
|
|
# define INF(...) EINA_LOG_DOM_INFO(_evas_engine_drm_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
# ifdef WRN
|
|
|
|
# undef WRN
|
|
|
|
# endif
|
|
|
|
# define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_drm_log_dom, __VA_ARGS__)
|
|
|
|
|
2013-12-25 19:22:05 -08:00
|
|
|
# ifdef CRI
|
|
|
|
# undef CRI
|
2013-04-29 04:40:24 -07:00
|
|
|
# endif
|
2013-12-25 19:22:05 -08:00
|
|
|
# define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_drm_log_dom, __VA_ARGS__)
|
2013-04-29 04:40:24 -07:00
|
|
|
|
2013-04-29 23:08:25 -07:00
|
|
|
struct _Outbuf
|
|
|
|
{
|
2014-06-25 01:47:08 -07:00
|
|
|
Evas_Engine_Info_Drm *info;
|
|
|
|
|
2013-05-01 00:27:02 -07:00
|
|
|
int w, h;
|
2014-06-25 01:47:08 -07:00
|
|
|
int rotation;
|
|
|
|
unsigned int depth;
|
2014-02-10 23:09:39 -08:00
|
|
|
|
2014-06-25 01:47:08 -07:00
|
|
|
struct
|
|
|
|
{
|
2015-04-08 10:57:58 -07:00
|
|
|
Ecore_Drm_Fb *buffer[4];
|
2014-02-12 06:28:00 -08:00
|
|
|
|
2014-06-25 01:47:08 -07:00
|
|
|
Eina_List *pending_writes;
|
2014-02-28 04:32:38 -08:00
|
|
|
|
2015-04-08 10:57:58 -07:00
|
|
|
unsigned int crtc_id, conn_id, buffer_id;
|
2014-02-11 23:30:20 -08:00
|
|
|
|
2014-07-09 07:14:57 -07:00
|
|
|
int curr, last, num;
|
2014-06-25 01:47:08 -07:00
|
|
|
} priv;
|
|
|
|
|
|
|
|
Eina_Bool destination_alpha : 1;
|
|
|
|
Eina_Bool vsync : 1;
|
2013-04-29 23:08:25 -07:00
|
|
|
};
|
|
|
|
|
2014-02-10 23:09:39 -08:00
|
|
|
Outbuf *evas_outbuf_setup(Evas_Engine_Info_Drm *info, int w, int h);
|
2013-04-29 23:08:25 -07:00
|
|
|
void evas_outbuf_free(Outbuf *ob);
|
2014-06-25 01:47:08 -07:00
|
|
|
void evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth);
|
|
|
|
Render_Engine_Swap_Mode evas_outbuf_buffer_state_get(Outbuf *ob);
|
2015-04-08 10:57:58 -07:00
|
|
|
int evas_outbuf_rot_get(Outbuf *ob);
|
2014-07-04 04:51:03 -07:00
|
|
|
void *evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch);
|
2014-02-10 23:09:39 -08:00
|
|
|
void evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h);
|
2014-02-28 04:32:38 -08:00
|
|
|
void evas_outbuf_update_region_free(Outbuf *ob, RGBA_Image *update);
|
2014-07-04 04:51:03 -07:00
|
|
|
void evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects, Evas_Render_Mode render_mode);
|
2014-02-10 23:09:39 -08:00
|
|
|
|
2013-04-29 04:40:24 -07:00
|
|
|
#endif
|