From 08bb6b1eec01a2ee05be8004a476a639fe2cd34d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 6 Dec 2016 13:17:16 -0500 Subject: [PATCH] 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 --- src/modules/evas/engines/drm/evas_engine.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/modules/evas/engines/drm/evas_engine.c b/src/modules/evas/engines/drm/evas_engine.c index 3c198fb..7fe688c 100644 --- a/src/modules/evas/engines/drm/evas_engine.c +++ b/src/modules/evas/engines/drm/evas_engine.c @@ -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; -- 2.7.4