devilhorns pushed a commit to branch master.

commit c7192a56f4ade8f8e330dd9fb3e6f080e9d39f5a
Author: Chris Michael <[email protected]>
Date:   Wed May 1 08:31:41 2013 +0100

    Add evas_outbuf_reconfigure function.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index b4510ba..84a435e 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -27,3 +27,18 @@ evas_outbuf_free(Outbuf *ob)
    /* free the allocated outbuf structure */
    free(ob);
 }
+
+void 
+evas_outbuf_reconfigure(Outbuf *ob, int w, int h, unsigned int rotation, 
unsigned int depth, Eina_Bool alpha)
+{
+   /* check for changes */
+   if ((ob->w == w) && (ob->h == h) && (ob->alpha == alpha) && 
+       (ob->rotation == rotation) && (ob->depth == depth)) return;
+
+   /* set new outbuf properties */
+   ob->w = w;
+   ob->h = h;
+   ob->rotation = rotation;
+   ob->depth = depth;
+   ob->alpha = alpha;
+}

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to