summaryrefslogtreecommitdiffstats
path: root/hwc/hwc.c
diff options
context:
space:
mode:
authorLajos Molnar <molnar@ti.com>2011-09-12 17:08:16 -0500
committerMathias Agopian <mathias@google.com>2011-09-12 19:26:06 -0700
commitedd73305db1144a3073773c8f56571998053ad08 (patch)
tree17d81c83f0c060f98c153b77068d58193e1406f5 /hwc/hwc.c
parentdb102588615bf0b973ddb2860415bd25f3e3130b (diff)
downloadhardware_ti_omap4-edd73305db1144a3073773c8f56571998053ad08.zip
hardware_ti_omap4-edd73305db1144a3073773c8f56571998053ad08.tar.gz
hardware_ti_omap4-edd73305db1144a3073773c8f56571998053ad08.tar.bz2
hwc: call wait-for-vsync in set if eglSwapBuffers is not called.
This adds a rate-limiting similar to when eglSwapBuffer is called, so that DSS-only compositions do not complete instantly. Also include FBIO_WAITFORVSYNC until it is defined in bionic's linux/fb.h Change-Id: I858da95b18cc2bca107b5ece616db42da38719f1 Signed-off-by: Lajos Molnar <molnar@ti.com>
Diffstat (limited to 'hwc/hwc.c')
-rw-r--r--hwc/hwc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 418c2ad..8dad009 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -31,6 +31,10 @@
#include <utils/Timers.h>
#include <hardware_legacy/uevent.h>
+#ifndef FBIO_WAITFORVSYNC
+#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
+#endif
+
#define min(a, b) ( { typeof(a) __a = (a), __b = (b); __a < __b ? __a : __b; } )
#define max(a, b) ( { typeof(a) __a = (a), __b = (b); __a > __b ? __a : __b; } )