summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-06-29 17:12:01 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-06-29 17:20:23 -0500
commitdc3873c8db964845aa12508874b13d3074265d18 (patch)
tree4217447cf2b320f0d8d28cb75c34a6aabb46ba09
parentc0e4a218dd06ecf790a5338c4fcc09a4073dba0c (diff)
downloadefl-dc3873c8db964845aa12508874b13d3074265d18.tar.gz
software_generic: fix eng_image_native_get
This has been a stub for a long time, but now we have a native_set, so we should have a native_get too. This is required for hw plane usage on the software engine.
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index f58fb494d3..85e9f401c3 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1193,9 +1193,14 @@ eng_image_native_set(void *data EINA_UNUSED, void *image, void *native)
}
static void *
-eng_image_native_get(void *data EINA_UNUSED, void *image EINA_UNUSED)
+eng_image_native_get(void *data EINA_UNUSED, void *image)
{
- return NULL;
+ RGBA_Image *im = image;
+ Evas_Native_Surface *n;
+
+ if (!im) return NULL;
+ n = im->native.data;
+ return n;
}
static void *