summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-23 22:22:27 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-24 14:09:09 +0900
commit49adf8aa47f37c41ee1fed288c828737104f1c5f (patch)
tree9d453bc773e9586417c9d801a221ba9a58b7aa82 /src/lib/evas/include/evas_common_private.h
parent5df38e9d53bd8caf9b6dcd8b4321934ecd9dba75 (diff)
evas tiler update handler - move to region code to be accurate and fast
this move evas tiler that does update handling to use fully correct regions using region.[xh]. this also removed old unused regionbuf code and a bunch of commented out code no longer needed. much simpler now and easier to maintain.
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h93
1 files changed, 1 insertions, 92 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index 52c6b2670c..c7ab1ba574 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -433,7 +433,6 @@ typedef struct _Cutout_Rects Cutout_Rects;
433typedef struct _Convert_Pal Convert_Pal; 433typedef struct _Convert_Pal Convert_Pal;
434 434
435typedef struct _Tilebuf Tilebuf; 435typedef struct _Tilebuf Tilebuf;
436typedef struct _Tilebuf_Tile Tilebuf_Tile;
437typedef struct _Tilebuf_Rect Tilebuf_Rect; 436typedef struct _Tilebuf_Rect Tilebuf_Rect;
438 437
439typedef struct _Evas_Common_Transform Evas_Common_Transform; 438typedef struct _Evas_Common_Transform Evas_Common_Transform;
@@ -449,11 +448,6 @@ typedef int FPc;
449// one fp unit 448// one fp unit
450#define FP1 (1 << (FP)) 449#define FP1 (1 << (FP))
451 450
452/*
453typedef struct _Regionbuf Regionbuf;
454typedef struct _Regionspan Regionspan;
455*/
456
457typedef void (*RGBA_Gfx_Func) (DATA32 *src, DATA8 *mask, DATA32 col, DATA32 *dst, int len); 451typedef void (*RGBA_Gfx_Func) (DATA32 *src, DATA8 *mask, DATA32 col, DATA32 *dst, int len);
458typedef void (*RGBA_Gfx_Pt_Func) (DATA32 src, DATA8 mask, DATA32 col, DATA32 *dst); 452typedef void (*RGBA_Gfx_Pt_Func) (DATA32 src, DATA8 mask, DATA32 col, DATA32 *dst);
459typedef void (*Gfx_Func_Copy) (DATA32 *src, DATA32 *dst, int len); 453typedef void (*Gfx_Func_Copy) (DATA32 *src, DATA32 *dst, int len);
@@ -1078,82 +1072,10 @@ struct _RGBA_Gfx_Compositor
1078 RGBA_Gfx_Pt_Func (*composite_pixel_mask_pt_get)(Eina_Bool src_alpha, Eina_Bool dst_alpha); 1072 RGBA_Gfx_Pt_Func (*composite_pixel_mask_pt_get)(Eina_Bool src_alpha, Eina_Bool dst_alpha);
1079}; 1073};
1080 1074
1081#define EVAS_RECT_SPLIT 1
1082#ifdef EVAS_RECT_SPLIT
1083typedef struct list_node list_node_t;
1084typedef struct list list_t;
1085typedef struct rect rect_t;
1086typedef struct rect_node rect_node_t;
1087
1088struct list_node
1089{
1090 struct list_node *next;
1091};
1092
1093struct list
1094{
1095 struct list_node *head;
1096 struct list_node *tail;
1097};
1098
1099struct rect
1100{
1101 int left;
1102 int top;
1103 int right;
1104 int bottom;
1105 int width;
1106 int height;
1107 int area;
1108};
1109
1110struct rect_node
1111{
1112 struct list_node _lst;
1113 struct rect rect;
1114};
1115#endif /* EVAS_RECT_SPLIT */
1116
1117struct _Tilebuf 1075struct _Tilebuf
1118{ 1076{
1119 int outbuf_w, outbuf_h; 1077 int outbuf_w, outbuf_h;
1120 struct { 1078 void *region;
1121 short w, h;
1122 } tile_size;
1123#ifdef RECTUPDATE
1124/*
1125 Regionbuf *rb;
1126 */
1127#elif defined(EVAS_RECT_SPLIT)
1128 int need_merge;
1129 list_t rects;
1130#else
1131/*
1132 struct {
1133 int w, h;
1134 Tilebuf_Tile *tiles;
1135 } tiles;
1136 */
1137#endif
1138 struct {
1139 int x, y, w, h;
1140 } prev_add, prev_del;
1141 Eina_Bool strict_tiles : 1;
1142};
1143
1144struct _Tilebuf_Tile
1145{
1146 Eina_Bool redraw : 1;
1147/* FIXME: need these flags later - but not now */
1148/*
1149 Eina_Bool done : 1;
1150 Eina_Bool edge : 1;
1151 Eina_Bool from : 1;
1152
1153 struct {
1154 int dx, dy;
1155 } vector;
1156 */
1157}; 1079};
1158 1080
1159struct _Tilebuf_Rect 1081struct _Tilebuf_Rect
@@ -1161,19 +1083,6 @@ struct _Tilebuf_Rect
1161 EINA_INLIST; 1083 EINA_INLIST;
1162 int x, y, w, h; 1084 int x, y, w, h;
1163}; 1085};
1164/*
1165struct _Regionbuf
1166{
1167 int w, h;
1168 Regionspan **spans;
1169};
1170
1171struct _Regionspan
1172{
1173 EINA_INLIST;
1174 int x1, x2;
1175};
1176*/
1177 1086
1178struct _Convert_Pal 1087struct _Convert_Pal
1179{ 1088{