summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/extn
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2014-07-09 11:39:32 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-07-09 11:42:18 +0900
commitd732e52f32ad18a69aece4366bef001c290f7a62 (patch)
treec25e9ad5e8aa589c6071da80bc37e4a1960c28dd /src/modules/ecore_evas/engines/extn
parentc7d290b4473baed4e2b18fbeaef90affbf256334 (diff)
ecore_evas_extn: remove redundant message sending
Summary: When a client is added to socket server, socket server sends NBUF (2) times of OP_RESIZE, OP_UPDATE, OP_UPDATE_DONE messages to client. However, only one message of OP_RESIZE, OP_UPDATE, OP_UPDATE_DONE is enough. This patch removes redundant OP_RESIZE, OP_UPDATE, OP_UPDATE_DONE sending. Reviewers: raster, Hermet Reviewed By: Hermet CC: woohyun, huchi Differential Revision: https://phab.enlightenment.org/D1141
Diffstat (limited to 'src/modules/ecore_evas/engines/extn')
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
index 75fcb8f12b..2da2f02049 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
@@ -1501,6 +1501,8 @@ _ipc_client_add(void *data, int type EINA_UNUSED, void *event)
1501 Ecore_Evas *ee = data; 1501 Ecore_Evas *ee = data;
1502 Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data; 1502 Ecore_Evas_Engine_Buffer_Data *bdata = ee->engine.data;
1503 Extn *extn; 1503 Extn *extn;
1504 Ipc_Data_Resize ipc;
1505 Ipc_Data_Update ipc2;
1504 int i; 1506 int i;
1505 1507
1506 if (ee != ecore_ipc_server_data_get(ecore_ipc_client_server_get(e->client))) 1508 if (ee != ecore_ipc_server_data_get(ecore_ipc_client_server_get(e->client)))
@@ -1515,8 +1517,6 @@ _ipc_client_add(void *data, int type EINA_UNUSED, void *event)
1515 for (i = 0; i < NBUF; i++) 1517 for (i = 0; i < NBUF; i++)
1516 { 1518 {
1517 const char *lock; 1519 const char *lock;
1518 Ipc_Data_Resize ipc;
1519 Ipc_Data_Update ipc2;
1520 1520
1521 ecore_ipc_client_send(e->client, MAJOR, OP_SHM_REF0, 1521 ecore_ipc_client_send(e->client, MAJOR, OP_SHM_REF0,
1522 extn->svc.num, extn->b[i].num, i, 1522 extn->svc.num, extn->b[i].num, i,
@@ -1529,15 +1529,15 @@ _ipc_client_add(void *data, int type EINA_UNUSED, void *event)
1529 ecore_ipc_client_send(e->client, MAJOR, OP_SHM_REF2, 1529 ecore_ipc_client_send(e->client, MAJOR, OP_SHM_REF2,
1530 ee->alpha, extn->svc.sys, i, 1530 ee->alpha, extn->svc.sys, i,
1531 NULL, 0); 1531 NULL, 0);
1532 ipc.w = ee->w; ipc.h = ee->h;
1533 ecore_ipc_client_send(e->client, MAJOR, OP_RESIZE,
1534 0, 0, 0, &ipc, sizeof(ipc));
1535 ipc2.x = 0; ipc2.y = 0; ipc2.w = ee->w; ipc2.h = ee->h;
1536 ecore_ipc_client_send(e->client, MAJOR, OP_UPDATE, 0, 0, 0, &ipc2,
1537 sizeof(ipc2));
1538 ecore_ipc_client_send(e->client, MAJOR, OP_UPDATE_DONE, 0, 0,
1539 extn->cur_b, NULL, 0);
1540 } 1532 }
1533 ipc.w = ee->w; ipc.h = ee->h;
1534 ecore_ipc_client_send(e->client, MAJOR, OP_RESIZE,
1535 0, 0, 0, &ipc, sizeof(ipc));
1536 ipc2.x = 0; ipc2.y = 0; ipc2.w = ee->w; ipc2.h = ee->h;
1537 ecore_ipc_client_send(e->client, MAJOR, OP_UPDATE, 0, 0, 0, &ipc2,
1538 sizeof(ipc2));
1539 ecore_ipc_client_send(e->client, MAJOR, OP_UPDATE_DONE, 0, 0,
1540 extn->cur_b, NULL, 0);
1541 _ecore_evas_extn_event(ee, ECORE_EVAS_EXTN_CLIENT_ADD); 1541 _ecore_evas_extn_event(ee, ECORE_EVAS_EXTN_CLIENT_ADD);
1542 return ECORE_CALLBACK_PASS_ON; 1542 return ECORE_CALLBACK_PASS_ON;
1543} 1543}