evas-drm: Don't destroy Outbuf on resize
authorChris Michael <cp.michael@samsung.com>
Tue, 6 Dec 2016 18:17:16 +0000 (13:17 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 6 Dec 2016 18:18:33 +0000 (13:18 -0500)
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>
src/modules/evas/engines/drm/evas_engine.c

index 3c198fb..7fe688c 100644 (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;