summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonsik Jung <sidein@samsung.com>2014-02-07 12:17:59 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-02-07 12:18:16 +0900
commit3420eda31aaa388af4c46e06e715e45952801478 (patch)
treedbf10a349e41793bfc50fc034ffd7e029caa197c
parent793a1a5c1cdad1b8a8880c249316e14317b89803 (diff)
evas: gl backend - ensure eng_window_use in image_content_hint_set
Summary: Ensure eng_window_use in image_content_hint_set Test Plan: 1. make native OpenGLES application. 2. set evas object image with evas_object_image_native_surface_set. 3. GLES Application try to call eglMakeCurrent with own eglContext, then resize evas object resize Reviewers: Hermet, raster, cedric Reviewed By: cedric CC: cedric, seoz Differential Revision: https://phab.enlightenment.org/D523 Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
-rw-r--r--src/modules/evas/engines/gl_cocoa/evas_engine.c6
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c6
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c6
3 files changed, 15 insertions, 3 deletions
diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c b/src/modules/evas/engines/gl_cocoa/evas_engine.c
index 702e751fc2..44d8e8e8d2 100644
--- a/src/modules/evas/engines/gl_cocoa/evas_engine.c
+++ b/src/modules/evas/engines/gl_cocoa/evas_engine.c
@@ -985,8 +985,12 @@ eng_image_map_surface_free(void *data EINA_UNUSED, void *surface)
985} 985}
986 986
987static void 987static void
988eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint) 988eng_image_content_hint_set(void *data, void *image, int hint)
989{ 989{
990 Render_Engine *re;
991 re = (Render_Engine *)data;
992
993 if (re) eng_window_use(re->win);
990 if (image) evas_gl_common_image_content_hint_set(image, hint); 994 if (image) evas_gl_common_image_content_hint_set(image, hint);
991} 995}
992 996
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index 5fb289b5cb..fffa16fd11 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -3103,8 +3103,12 @@ eng_image_map_surface_free(void *data EINA_UNUSED, void *surface)
3103} 3103}
3104 3104
3105static void 3105static void
3106eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint) 3106eng_image_content_hint_set(void *data, void *image, int hint)
3107{ 3107{
3108 Render_Engine *re;
3109 re = (Render_Engine *)data;
3110
3111 if (re) eng_window_use(re->win);
3108 if (image) evas_gl_common_image_content_hint_set(image, hint); 3112 if (image) evas_gl_common_image_content_hint_set(image, hint);
3109} 3113}
3110 3114
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 67c6e153c0..e7c0336d29 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -2292,8 +2292,12 @@ eng_image_stride_get(void *data EINA_UNUSED, void *image, int *stride)
2292} 2292}
2293 2293
2294static void 2294static void
2295eng_image_content_hint_set(void *data EINA_UNUSED, void *image, int hint) 2295eng_image_content_hint_set(void *data, void *image, int hint)
2296{ 2296{
2297 Render_Engine *re;
2298 re = (Render_Engine *)data;
2299
2300 if (re) eng_window_use(re->win);
2297 if (image) evas_gl_common_image_content_hint_set(image, hint); 2301 if (image) evas_gl_common_image_content_hint_set(image, hint);
2298} 2302}
2299 2303