aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 12:04:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 12:05:50 +0900
commitb5c9350805e350f7d7e5b0daeb8b02a5fc42b456 (patch)
tree6876dc68225f0a3ad98cb8c0e27dd6449a546960 /src/lib/evas/canvas/evas_object_image.c
parentEvas gl_cocoa: remove code duplicated from gl_generic (diff)
downloadefl-b5c9350805e350f7d7e5b0daeb8b02a5fc42b456.tar.gz
Evas: Replace image_map_surface_free by common image_free
Those two functions were doing exactly the same thing[1], which is free an image, so this commit only attempts to simplify the code a little bit. [1] Actually image_map_surface_free() might even not have worked properly with cserve2 sw (calling unload instead of close).
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index e18c58f593..221ed0893f 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -2427,8 +2427,8 @@ _proxy_unset(Evas_Object *proxy, Evas_Object_Protected_Data *cur_proxy, Evas_Ima
if (eina_list_count(proxy_source_write->proxies) == 0)
{
if (proxy_source_write->surface)
- cur_proxy->layer->evas->engine.func->image_map_surface_free(cur_proxy->layer->evas->engine.data.output,
- proxy_source_write->surface);
+ cur_proxy->layer->evas->engine.func->image_free(cur_proxy->layer->evas->engine.data.output,
+ proxy_source_write->surface);
proxy_source_write->surface = NULL;
proxy_source_write->redraw = EINA_FALSE;
}
@@ -3172,7 +3172,7 @@ _evas_image_evas_filter_input_render(Eo *eo_obj, Evas_Image_Data *o,
if (!input_stolen)
{
evas_filter_image_draw(filter, context, EVAS_FILTER_BUFFER_INPUT_ID, surface, do_async);
- ENFN->image_map_surface_free(output, surface);
+ ENFN->image_free(output, surface);
}
else
evas_filter_buffer_backing_release(filter, surface);