summaryrefslogtreecommitdiff
path: root/src/modules/ethumb
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-11-21 10:00:09 -0500
committerChris Michael <cp.michael@samsung.com>2018-11-21 10:00:09 -0500
commita4bc0188ebc7a8138ae0a060880c46b0cdaf134d (patch)
tree685a4b8f23300139dc431de99573ab1d23397185 /src/modules/ethumb
parente68a952b8c039ca57f31b669efef84303c54922d (diff)
emotion: Reduce EO calls by using geometry_set
This patch reduces EO calls by using evas_object_geometry_set rather than calling move & resize.
Diffstat (limited to 'src/modules/ethumb')
-rw-r--r--src/modules/ethumb/emotion/emotion.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/ethumb/emotion/emotion.c b/src/modules/ethumb/emotion/emotion.c
index efa32a5e5b..b80b33b8e5 100644
--- a/src/modules/ethumb/emotion/emotion.c
+++ b/src/modules/ethumb/emotion/emotion.c
@@ -69,13 +69,11 @@ _resize_movie(struct _emotion_plugin *_plugin)
69 69
70 if (_plugin->edje_frame) 70 if (_plugin->edje_frame)
71 { 71 {
72 evas_object_resize(_plugin->edje_frame, fw, fh); 72 evas_object_geometry_set(_plugin->edje_frame, fx, fy, fw, fh);
73 evas_object_move(_plugin->edje_frame, fx, fy);
74 } 73 }
75 else 74 else
76 { 75 {
77 evas_object_resize(_plugin->video, fw, fh); 76 evas_object_geometry_set(_plugin->video, fx, fy, fw, fh);
78 evas_object_move(_plugin->video, fx, fy);
79 } 77 }
80 emotion_object_audio_mute_set(_plugin->video, 1); 78 emotion_object_audio_mute_set(_plugin->video, 1);
81} 79}