summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_scale.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-09-23 17:51:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:15 +0900
commit1e82480c9a074163ec6788a8a60ead403f7b0658 (patch)
tree0c1458c5a0a0149c0f4a16e11f4d3523934cdb74 /src/bin/evas/evas_cserve2_scale.c
parentfc73405c40653a5fc0166690e3657ffd87069efc (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/bin/evas/evas_cserve2_scale.c')
-rw-r--r--src/bin/evas/evas_cserve2_scale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/evas/evas_cserve2_scale.c b/src/bin/evas/evas_cserve2_scale.c
index 9324432f13..dd909db235 100644
--- a/src/bin/evas/evas_cserve2_scale.c
+++ b/src/bin/evas/evas_cserve2_scale.c
@@ -32,7 +32,8 @@ _cserve2_rgba_image_set(RGBA_Image *im, void *data, int w, int h, int alpha)
32} 32}
33 33
34void 34void
35cserve2_rgba_image_scale_do(void *src_data, void *dst_data, 35cserve2_rgba_image_scale_do(void *src_data, int src_full_w, int src_full_h,
36 void *dst_data,
36 int src_x, int src_y, int src_w, int src_h, 37 int src_x, int src_y, int src_w, int src_h,
37 int dst_x, int dst_y, int dst_w, int dst_h, 38 int dst_x, int dst_y, int dst_w, int dst_h,
38 int alpha, int smooth) 39 int alpha, int smooth)
@@ -40,8 +41,7 @@ cserve2_rgba_image_scale_do(void *src_data, void *dst_data,
40 RGBA_Image src, dst; 41 RGBA_Image src, dst;
41 RGBA_Draw_Context ct; 42 RGBA_Draw_Context ct;
42 43
43 _cserve2_rgba_image_set(&src, src_data, src_w, src_h, alpha); 44 _cserve2_rgba_image_set(&src, src_data, src_full_w, src_full_h, alpha);
44
45 _cserve2_rgba_image_set(&dst, dst_data, dst_w, dst_h, alpha); 45 _cserve2_rgba_image_set(&dst, dst_data, dst_w, dst_h, alpha);
46 dst.flags = RGBA_IMAGE_NOTHING; 46 dst.flags = RGBA_IMAGE_NOTHING;
47 47