summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-07-03 15:49:59 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-04 13:02:48 +0900
commit46b7baa3790e700c941c62431e3e2c06ef5550bb (patch)
treeed46d31b6fba50e7fb0dd73320b586a442dc3331 /src/lib/evas/cserve2/evas_cs2.h
parentca5d174568e7ebae829899811d36f48bf0dc9d6e (diff)
evas/cserve2: merge SETOPTS into OPEN
When opening an image, OPEN and SETOPTS were always sent consecutively. Merging these two messages may improve the performance a bit (not measured), but also simplify the whole thing. Note: cserve2 debug tools have not been fixed yet.
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2.h')
-rw-r--r--src/lib/evas/cserve2/evas_cs2.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2.h b/src/lib/evas/cserve2/evas_cs2.h
index b35af47348..ad36b4e7fe 100644
--- a/src/lib/evas/cserve2/evas_cs2.h
+++ b/src/lib/evas/cserve2/evas_cs2.h
@@ -10,8 +10,6 @@
10typedef enum { 10typedef enum {
11 CSERVE2_OPEN = 1, 11 CSERVE2_OPEN = 1,
12 CSERVE2_OPENED, 12 CSERVE2_OPENED,
13 CSERVE2_SETOPTS,
14 CSERVE2_SETOPTSED,
15 CSERVE2_LOAD, 13 CSERVE2_LOAD,
16 CSERVE2_LOADED, 14 CSERVE2_LOADED,
17 CSERVE2_PRELOAD, 15 CSERVE2_PRELOAD,
@@ -59,6 +57,11 @@ struct _Msg_Open {
59 unsigned int image_id; 57 unsigned int image_id;
60 58
61 Eina_Bool has_load_opts : 1; 59 Eina_Bool has_load_opts : 1;
60
61 // Followed by:
62 // const char file[];
63 // const char key[];
64 // Evas_Image_Load_Opts opts; // if has_load_opts
62}; 65};
63 66
64struct _Msg_Opened { 67struct _Msg_Opened {
@@ -72,17 +75,6 @@ struct _Msg_Opened {
72 } image; 75 } image;
73}; 76};
74 77
75struct _Msg_Setopts {
76 Msg_Base base;
77 unsigned int file_id;
78 unsigned int image_id;
79 Evas_Image_Load_Opts opts;
80};
81
82struct _Msg_Setoptsed {
83 Msg_Base base;
84};
85
86struct _Msg_Load { 78struct _Msg_Load {
87 Msg_Base base; 79 Msg_Base base;
88 unsigned int image_id; 80 unsigned int image_id;
@@ -277,8 +269,6 @@ struct _Msg_Error {
277 269
278typedef struct _Msg_Open Msg_Open; 270typedef struct _Msg_Open Msg_Open;
279typedef struct _Msg_Opened Msg_Opened; 271typedef struct _Msg_Opened Msg_Opened;
280typedef struct _Msg_Setopts Msg_Setopts;
281typedef struct _Msg_Setoptsed Msg_Setoptsed;
282typedef struct _Msg_Load Msg_Load; 272typedef struct _Msg_Load Msg_Load;
283typedef struct _Msg_Loaded Msg_Loaded; 273typedef struct _Msg_Loaded Msg_Loaded;
284typedef struct _Msg_Preload Msg_Preload; 274typedef struct _Msg_Preload Msg_Preload;