forked from enlightenment/efl
evas/wayland_egl: Implement image_mmap engine method.
It looks like several methods like this one should be moved to a common place (gl_common, maybe).
This commit is contained in:
parent
2a20ca4477
commit
aeb3669c6f
|
@ -1578,6 +1578,17 @@ eng_image_load(void *data, const char *file, const char *key, int *error, Evas_I
|
|||
return evas_gl_common_image_load(re->win->gl_context, file, key, lo, error);
|
||||
}
|
||||
|
||||
static void *
|
||||
eng_image_mmap(void *data, Eina_File *f, const char *key, int *error, Evas_Image_Load_Opts *lo)
|
||||
{
|
||||
Render_Engine *re;
|
||||
|
||||
re = (Render_Engine *)data;
|
||||
*error = EVAS_LOAD_ERROR_NONE;
|
||||
eng_window_use(re->win);
|
||||
return evas_gl_common_image_mmap(re->win->gl_context, f, key, lo, error);
|
||||
}
|
||||
|
||||
static void *
|
||||
eng_image_new_from_data(void *data, int w, int h, DATA32 *image_data, int alpha, int cspace)
|
||||
{
|
||||
|
@ -3733,6 +3744,7 @@ module_open(Evas_Module *em)
|
|||
ORD(polygon_draw);
|
||||
|
||||
ORD(image_load);
|
||||
ORD(image_mmap);
|
||||
ORD(image_new_from_data);
|
||||
ORD(image_new_from_copied_data);
|
||||
ORD(image_free);
|
||||
|
|
Loading…
Reference in New Issue