diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-09-23 17:51:06 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-10-28 15:47:15 +0900 |
commit | 1e82480c9a074163ec6788a8a60ead403f7b0658 (patch) | |
tree | 0c1458c5a0a0149c0f4a16e11f4d3523934cdb74 /src/lib/evas/cserve2 | |
parent | fc73405c40653a5fc0166690e3657ffd87069efc (diff) |
evas/cserve2: Use scalecache with cserve2
Let's reuse the logic from scalecache and call cserve2
functions when the scalecache should be used.
So, now, cserve2 server will not scale any image... This is
too computationally intensive for the server's main thread.
This is not optimal but makes a hell of a lot more sense for
the moment. (since cserve2 manages the SHM segments)
Diffstat (limited to 'src/lib/evas/cserve2')
-rw-r--r-- | src/lib/evas/cserve2/evas_cs2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2.h b/src/lib/evas/cserve2/evas_cs2.h index 6cc8804e29..5378790999 100644 --- a/src/lib/evas/cserve2/evas_cs2.h +++ b/src/lib/evas/cserve2/evas_cs2.h | |||
@@ -90,6 +90,9 @@ struct _Msg_Loaded { | |||
90 | int mmap_size; | 90 | int mmap_size; |
91 | int image_size; | 91 | int image_size; |
92 | } shm; | 92 | } shm; |
93 | struct { | ||
94 | unsigned int w, h; // Real dimensions of this image. May differ from Msg_Opened::image::{w,h} after scaling. | ||
95 | } image; | ||
93 | Eina_Bool alpha_sparse : 1; | 96 | Eina_Bool alpha_sparse : 1; |
94 | }; | 97 | }; |
95 | 98 | ||
@@ -354,6 +357,7 @@ struct _Image_Data { | |||
354 | uint32_t file_id; | 357 | uint32_t file_id; |
355 | string_t shm_id; | 358 | string_t shm_id; |
356 | Evas_Image_Load_Opts opts; | 359 | Evas_Image_Load_Opts opts; |
360 | uint32_t w, h; | ||
357 | Eina_Bool alpha_sparse : 1; | 361 | Eina_Bool alpha_sparse : 1; |
358 | Eina_Bool unused : 1; | 362 | Eina_Bool unused : 1; |
359 | Eina_Bool doload : 1; | 363 | Eina_Bool doload : 1; |