aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-01-21 14:15:34 +0000
committerChris Michael <cp.michael@samsung.com>2014-01-29 15:27:23 +0000
commita26e161c5d5b62f88f88474a405c4fec710de3b9 (patch)
treeae1299cdedb4b8cbc46d5203032012287ad3a1bd
parentFix function prototypes to accept the drm device fd. (diff)
downloadefl-a26e161c5d5b62f88f88474a405c4fec710de3b9.tar.gz
Fix swapper_setup functions to pass in the fd.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/evas/engines/drm/evas_swapbuf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/evas/engines/drm/evas_swapbuf.c b/src/modules/evas/engines/drm/evas_swapbuf.c
index feee7e8d5e..a9534f95d0 100644
--- a/src/modules/evas/engines/drm/evas_swapbuf.c
+++ b/src/modules/evas/engines/drm/evas_swapbuf.c
@@ -17,7 +17,7 @@
/* local function prototypes */
Outbuf *
-evas_swapbuf_setup(int w, int h, unsigned int rotation, Outbuf_Depth depth, Eina_Bool alpha)
+evas_swapbuf_setup(int w, int h, unsigned int rotation, Outbuf_Depth depth, Eina_Bool alpha, int fd)
{
Outbuf *ob = NULL;
@@ -33,16 +33,17 @@ evas_swapbuf_setup(int w, int h, unsigned int rotation, Outbuf_Depth depth, Eina
ob->rotation = rotation;
ob->depth = depth;
ob->priv.destination_alpha = alpha;
+ ob->priv.fd = fd;
if ((ob->rotation == 0) || (ob->rotation == 180))
{
ob->priv.swapper =
- evas_swapper_setup(0, 0, w, h, depth, alpha);
+ evas_swapper_setup(0, 0, w, h, depth, alpha, fd);
}
else if ((ob->rotation == 90) || (ob->rotation == 270))
{
ob->priv.swapper =
- evas_swapper_setup(0, 0, h, w, depth, alpha);
+ evas_swapper_setup(0, 0, h, w, depth, alpha, fd);
}
/* check that a swapper was created */
@@ -117,12 +118,12 @@ evas_swapbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, unsigned int ro
if ((ob->rotation == 0) || (ob->rotation == 180))
{
ob->priv.swapper =
- evas_swapper_setup(x, y, w, h, depth, alpha);
+ evas_swapper_setup(x, y, w, h, depth, alpha, ob->priv.fd);
}
else if ((ob->rotation == 90) || (ob->rotation == 270))
{
ob->priv.swapper =
- evas_swapper_setup(x, y, h, w, depth, alpha);
+ evas_swapper_setup(x, y, h, w, depth, alpha, ob->priv.fd);
}
}