}
else if ((tbm_surface = wayland_tbm_server_get_surface(NULL, buf_res)))
{
+ po->tbm_surface = tbm_surface;
bw = tbm_surface_get_width(tbm_surface);
bh = tbm_surface_get_height(tbm_surface);
}
evas_object_image_data_set(po->img, wl_shm_buffer_get_data(po->shm_buffer));
evas_object_image_data_update_add(po->img, 0, 0, po->w, po->h);
}
- else if (po->buffer)
+ else if (po->tbm_surface)
{
Evas_Native_Surface ns;
ns.version = EVAS_NATIVE_SURFACE_VERSION;
- ns.type = EVAS_NATIVE_SURFACE_WL;
- ns.data.wl.legacy_buffer = pepper_buffer_get_resource(po->buffer);
+ ns.type = EVAS_NATIVE_SURFACE_TBM;
+ ns.data.tbm.buffer = po->tbm_surface;
evas_object_image_size_set(po->img, po->w, po->h);
evas_object_image_native_surface_set(po->img, &ns);