|
From: Chris M. - E. G. <no-...@en...> - 2013-04-30 06:26:35
|
devilhorns pushed a commit to branch master.
commit c71edd740c5ac8efaff8a2b624336357ce2e736f
Author: Chris Michael <cp....@sa...>
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 <cp....@sa...>
---
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);
}
--
|