summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-23 13:33:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-28 16:40:01 +0900
commitd5b0b1e683310d16855d2183f509b11c4c3b8971 (patch)
treea8db5af3d61b143616940a97a0644fb8d51087aa /src/lib/evas/include/evas_common_private.h
parent078117d367afff6862b72bec8bbc29909b259fd4 (diff)
Evas: Add SW engine map/unmap functions
Also, fix some of the code using them.
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index 98f9066444..600a645820 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -428,6 +428,7 @@ typedef struct _RGBA_Font_Source RGBA_Font_Source;
428typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph; 428typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph;
429typedef struct _RGBA_Font_Glyph_Out RGBA_Font_Glyph_Out; 429typedef struct _RGBA_Font_Glyph_Out RGBA_Font_Glyph_Out;
430typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor; 430typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor;
431typedef struct _RGBA_Image_Data_Map RGBA_Image_Data_Map;
431 432
432typedef struct _Cutout_Rect Cutout_Rect; 433typedef struct _Cutout_Rect Cutout_Rect;
433typedef struct _Cutout_Rects Cutout_Rects; 434typedef struct _Cutout_Rects Cutout_Rects;
@@ -832,6 +833,18 @@ struct _RGBA_Pipe_Thread_Info
832}; 833};
833#endif 834#endif
834 835
836struct _RGBA_Image_Data_Map {
837 EINA_INLIST;
838 unsigned char *ptr;
839 unsigned int size, stride; // in bytes
840 int rx, ry, rw, rh; // actual map region
841 unsigned char *baseptr;
842 unsigned char plane;
843 Evas_Colorspace cspace;
844 Eina_Bool allocated; // ptr is malloc() for cow or cspace conv
845 Efl_Gfx_Buffer_Access_Mode mode;
846};
847
835struct _RGBA_Image 848struct _RGBA_Image
836{ 849{
837 Image_Entry cache_entry; 850 Image_Entry cache_entry;
@@ -879,6 +892,9 @@ struct _RGBA_Image
879 void *data; 892 void *data;
880 } func; 893 } func;
881 } native; 894 } native;
895
896 /* data map/unmap */
897 RGBA_Image_Data_Map *maps;
882}; 898};
883 899
884struct _RGBA_Polygon_Point 900struct _RGBA_Polygon_Point