summaryrefslogtreecommitdiffstats
path: root/include/hardware/hwcomposer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-04-10 21:22:28 -0700
committerMathias Agopian <mathias@google.com>2012-04-10 21:22:28 -0700
commit6d3fec70d86fe8e8fb71b233d2de727fee3f6f3f (patch)
treea08add374667c793b661200e4aa2badbb4df182a /include/hardware/hwcomposer.h
parentc65a2fe3925f46b4d4301cef97b308dbc3e22da9 (diff)
downloadhardware_libhardware-6d3fec70d86fe8e8fb71b233d2de727fee3f6f3f.zip
hardware_libhardware-6d3fec70d86fe8e8fb71b233d2de727fee3f6f3f.tar.gz
hardware_libhardware-6d3fec70d86fe8e8fb71b233d2de727fee3f6f3f.tar.bz2
improve hwc VSYNC documentation
Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e
Diffstat (limited to 'include/hardware/hwcomposer.h')
-rw-r--r--include/hardware/hwcomposer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h
index 7f55784..827cea1 100644
--- a/include/hardware/hwcomposer.h
+++ b/include/hardware/hwcomposer.h
@@ -331,6 +331,11 @@ typedef struct hwc_procs {
* ANDROID_URGENT_DISPLAY_PRIORITY with as little latency as possible,
* typically less than 0.5 ms.
*
+ * It is a (silent) error to have HWC_EVENT_VSYNC enabled when calling
+ * hwc_composer_device.set(..., 0, 0, 0) (screen off). The implementation
+ * can either stop or continue to process VSYNC events, but must not
+ * crash or cause other problems.
+ *
*/
void (*vsync)(struct hwc_procs* procs, int zero, int64_t timestamp);
} hwc_procs_t;