summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-08-19 12:22:19 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:14 +0900
commit467b1b17395cf712ee4ec1ac4a3cef710370ed6d (patch)
tree7fa5098167eb0bb85149276ed716258c61212610 /src/lib/evas/cserve2/evas_cs2.h
parentc7515f3300157419c42d8a9d224c46babebae37c (diff)
evas/cserve2: Store Glyph_Data in shared mempools
- Create one Glyph_Data array per Font_Entry - Copy Font_Source descriptors in shared array - Copy font entries in shared index - Send font index path over socket - Merge Font_Source and Font_Data in shared memory - Send font index path on client connect - Repack font index after free - Pass font shm name to clients
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2.h')
-rw-r--r--src/lib/evas/cserve2/evas_cs2.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2.h b/src/lib/evas/cserve2/evas_cs2.h
index 329d0d2278..b233be6c2e 100644
--- a/src/lib/evas/cserve2/evas_cs2.h
+++ b/src/lib/evas/cserve2/evas_cs2.h
@@ -184,7 +184,6 @@ struct _Msg_Font_Glyphs_Request {
184 */ 184 */
185struct _Msg_Font_Glyphs_Loaded { 185struct _Msg_Font_Glyphs_Loaded {
186 Msg_Base base; 186 Msg_Base base;
187 unsigned int ncaches;
188}; 187};
189 188
190struct _Msg_Stats { 189struct _Msg_Stats {
@@ -287,6 +286,7 @@ typedef struct _Shm_Object Shm_Object;
287typedef struct _Index_Entry Index_Entry; 286typedef struct _Index_Entry Index_Entry;
288typedef struct _File_Data File_Data; 287typedef struct _File_Data File_Data;
289typedef struct _Image_Data Image_Data; 288typedef struct _Image_Data Image_Data;
289typedef struct _Font_Data Font_Data;
290typedef struct _Glyph_Data Glyph_Data; 290typedef struct _Glyph_Data Glyph_Data;
291typedef struct _Shared_Array_Header Shared_Array_Header; 291typedef struct _Shared_Array_Header Shared_Array_Header;
292typedef int string_t; 292typedef int string_t;
@@ -338,10 +338,21 @@ struct _Image_Data {
338 Eina_Bool doload : 1; 338 Eina_Bool doload : 1;
339}; 339};
340 340
341struct _Font_Data {
342 SHMOBJECT;
343 string_t name;
344 string_t file;
345 string_t glyph_index_shm;
346 uint32_t rend_flags;
347 uint32_t size;
348 uint32_t dpi;
349};
350
341struct _Glyph_Data { 351struct _Glyph_Data {
342 SHMOBJECT; 352 SHMOBJECT;
343 uint32_t index; 353 uint32_t index;
344 string_t shm_id; 354 string_t shm_id;
355 uint32_t buffer_id;
345 uint32_t offset; 356 uint32_t offset;
346 uint32_t size; 357 uint32_t size;
347 uint32_t rows; 358 uint32_t rows;