evas/cserve2: Add glyph shm names to Font_Data

This commit is contained in:
Jean-Philippe Andre 2013-08-22 14:55:07 +09:00
parent b5ca88027d
commit bc7b337fc0
2 changed files with 9 additions and 0 deletions

View File

@ -1974,10 +1974,13 @@ _glyphs_load_request_response(Glyphs_Request *req,
Shared_Mempool *mempool = msg->mempool;
unsigned int j;
string_t shm_id = 0;
Font_Data *fd;
if (!msg->nglyphs)
return _glyphs_loaded_msg_create(req, size);
fd = _font_data_find(fe->font_data_id);
DBG("Font memory usage [begin]: %d / %d", font_mem_usage, max_font_usage);
if (!mempool)
@ -1995,6 +1998,8 @@ _glyphs_load_request_response(Glyphs_Request *req,
_generation_id,
sizeof(Glyph_Data), 0);
font_mem_usage += cserve2_shared_array_map_size_get(fe->glyph_datas);
fd->glyph_index_shm = cserve2_shared_string_add(
cserve2_shared_array_name_get(fe->glyph_datas));
}
shm_id = cserve2_shared_string_add(cserve2_shared_mempool_name_get(mempool));
@ -2058,6 +2063,9 @@ _glyphs_load_request_response(Glyphs_Request *req,
#endif
fe->mempool = mempool;
if (!fd->mempool_shm)
fd->mempool_shm = cserve2_shared_string_add(
cserve2_shared_mempool_name_get(mempool));
DBG("Font memory usage [end]: %d / %d", font_mem_usage, max_font_usage);
_font_lru_flush();

View File

@ -351,6 +351,7 @@ struct _Font_Data {
string_t name;
string_t file;
string_t glyph_index_shm;
string_t mempool_shm;
uint32_t rend_flags;
uint32_t size;
uint32_t dpi;