devilhorns pushed a commit to branch master.

commit c71edd740c5ac8efaff8a2b624336357ce2e736f
Author: Chris Michael <[email protected]>
Date:   Tue Apr 30 07:27:20 2013 +0100

    Add some initial code to create the Outbuf and to free it.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index d6bf246..b4510ba 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -5,11 +5,25 @@
 Outbuf *
 evas_outbuf_setup(int w, int h, unsigned int rotation, unsigned int depth, 
Eina_Bool alpha)
 {
-   return NULL;
+   Outbuf *ob;
+
+   /* try to allocate space for out outbuf structure */
+   if (!(ob = calloc(1, sizeof(Outbuf))))
+     return NULL;
+
+   /* set some default outbuf properties */
+   ob->w = w;
+   ob->h = h;
+   ob->rotation = rotation;
+   ob->depth = depth;
+
+   /* return the allocated outbuf structure */
+   return ob;
 }
 
 void 
 evas_outbuf_free(Outbuf *ob)
 {
-
+   /* free the allocated outbuf structure */
+   free(ob);
 }

-- 

------------------------------------------------------------------------------
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