evas-drm: Don't destroy Outbuf on resize

On an engine resize, we previously would destroy the Outbuf structure.
This patch modifies the code so that on a resize we no longer have to
destroy the old Outbuf and reallocate a new one. Instead, we will just
reconfigure the existing one and update it's properties.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-12-06 13:17:16 -05:00
parent 2ffc93ddf9
commit 08bb6b1eec
1 changed files with 2 additions and 7 deletions

View File

@ -94,13 +94,8 @@ eng_setup(Evas *evas, void *einfo)
}
else
{
Outbuf *ob;
ob = _outbuf_setup(info, epd->output.w, epd->output.h);
if (!ob) return 0;
evas_render_engine_software_generic_update(&re->generic, ob,
ob->w, ob->h);
_outbuf_reconfigure(re->generic.ob, epd->output.w, epd->output.h,
info->info.rotation, info->info.depth);
}
epd->engine.data.output = re;