summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/drm/evas_engine.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-02-12 07:30:20 +0000
committerChris Michael <cp.michael@samsung.com>2014-02-28 13:10:00 +0000
commitccbdd2137f3bfd9b490d4b8b4c7a0febedba1b89 (patch)
tree2e4defa25df2d511038a51e38c53f8f2a0a3822a /src/modules/evas/engines/drm/evas_engine.h
parentd21ab6f59767202514ef03e49d74ef0a8076eba0 (diff)
evas-drm: Triple buffer by default.
@feature: Triple buffer by default on drm engine Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/evas/engines/drm/evas_engine.h')
-rw-r--r--src/modules/evas/engines/drm/evas_engine.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/modules/evas/engines/drm/evas_engine.h b/src/modules/evas/engines/drm/evas_engine.h
index 5abfcd8a11..52e3eadfcf 100644
--- a/src/modules/evas/engines/drm/evas_engine.h
+++ b/src/modules/evas/engines/drm/evas_engine.h
@@ -11,6 +11,12 @@
11#include <xf86drmMode.h> 11#include <xf86drmMode.h>
12#include <drm_fourcc.h> 12#include <drm_fourcc.h>
13 13
14/* #ifdef HAVE_DRM_HW_ACCEL */
15/* # include <gbm.h> */
16/* # include <EGL/egl.h> */
17/* # include <EGL/eglext.h> */
18/* #endif */
19
14#include <signal.h> 20#include <signal.h>
15#include <sys/ioctl.h> 21#include <sys/ioctl.h>
16#include <sys/types.h> 22#include <sys/types.h>
@@ -45,7 +51,7 @@ extern int _evas_engine_drm_log_dom;
45# define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_drm_log_dom, __VA_ARGS__) 51# define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_drm_log_dom, __VA_ARGS__)
46 52
47/* define a maximum number of 'buffers' (double-buff, triple-buff, etc) */ 53/* define a maximum number of 'buffers' (double-buff, triple-buff, etc) */
48# define NUM_BUFFERS 2 54# define NUM_BUFFERS 3
49 55
50typedef struct _Buffer Buffer; 56typedef struct _Buffer Buffer;
51typedef struct _Outbuf Outbuf; 57typedef struct _Outbuf Outbuf;
@@ -74,6 +80,14 @@ struct _Buffer
74 unsigned int fb; 80 unsigned int fb;
75 void *data; 81 void *data;
76 82
83/* # ifdef HAVE_DRM_HW_ACCEL */
84/* struct gbm_surface *surface; */
85/* struct */
86/* { */
87/* EGLSurface surface; */
88/* } egl; */
89/* # endif */
90
77 Eina_Bool valid : 1; 91 Eina_Bool valid : 1;
78}; 92};
79 93
@@ -99,6 +113,8 @@ struct _Outbuf
99 113
100 Eina_List *pending_writes; 114 Eina_List *pending_writes;
101 Eina_List *prev_pending_writes; 115 Eina_List *prev_pending_writes;
116
117 Eina_Bool use_async_page_flip : 1;
102 } priv; 118 } priv;
103}; 119};
104 120