From 1e82480c9a074163ec6788a8a60ead403f7b0658 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 23 Sep 2013 17:51:06 +0900 Subject: 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) --- src/lib/evas/cserve2/evas_cs2.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/evas/cserve2') 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 { int mmap_size; int image_size; } shm; + struct { + unsigned int w, h; // Real dimensions of this image. May differ from Msg_Opened::image::{w,h} after scaling. + } image; Eina_Bool alpha_sparse : 1; }; @@ -354,6 +357,7 @@ struct _Image_Data { uint32_t file_id; string_t shm_id; Evas_Image_Load_Opts opts; + uint32_t w, h; Eina_Bool alpha_sparse : 1; Eina_Bool unused : 1; Eina_Bool doload : 1; -- cgit v1.2.1