diff options
author | Lajos Molnar <molnar@ti.com> | 2011-09-12 17:08:16 -0500 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-09-12 19:26:06 -0700 |
commit | edd73305db1144a3073773c8f56571998053ad08 (patch) | |
tree | 17d81c83f0c060f98c153b77068d58193e1406f5 | |
parent | db102588615bf0b973ddb2860415bd25f3e3130b (diff) | |
download | hardware_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>
-rw-r--r-- | hwc/hwc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } ) |