diff options
author | Arun Kumar K.R <akumarkr@codeaurora.org> | 2012-08-02 18:43:18 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-08-09 09:55:11 -0700 |
commit | 6faf610096bd6a6ea4d954de105a1995e39c564c (patch) | |
tree | e8fa375f610215088603a38ceaa20a71f13d85ab /include/hardware | |
parent | 26272016d5364f1ed6dfb4afd1484d575efde389 (diff) | |
download | hardware_libhardware-6faf610096bd6a6ea4d954de105a1995e39c564c.zip hardware_libhardware-6faf610096bd6a6ea4d954de105a1995e39c564c.tar.gz hardware_libhardware-6faf610096bd6a6ea4d954de105a1995e39c564c.tar.bz2 |
hwcomposer: Add HWC_EVENT_ORIENTATION to hwc
Change-Id: If15b475173600d2467d7fbdd43b428b4bdd94d8a
CRs-fixed: 382796
Diffstat (limited to 'include/hardware')
-rw-r--r-- | include/hardware/hwcomposer.h | 9 | ||||
-rw-r--r-- | include/hardware/hwcomposer_defs.h | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h index 98e665c..d1e3ba2 100644 --- a/include/hardware/hwcomposer.h +++ b/include/hardware/hwcomposer.h @@ -62,7 +62,7 @@ typedef struct hwc_methods { *************************************************************************/ /* - * eventControl(..., event, enabled) + * eventControl(..., event, value) * Enables or disables h/w composer events. * * eventControl can be called from any thread and takes effect @@ -70,13 +70,16 @@ typedef struct hwc_methods { * * Supported events are: * HWC_EVENT_VSYNC + * HWC_EVENT_ORIENTATION * * returns -EINVAL if the "event" parameter is not one of the value above - * or if the "enabled" parameter is not 0 or 1. + * or if the "value" parameter is not 0 or 1 for HWC_EVENT_VSYNC. + * and if the "value" parameter is not going to be just 0 or 1 for + * HWC_EVENT_ORIENTATION */ int (*eventControl)( - struct hwc_composer_device* dev, int event, int enabled); + struct hwc_composer_device* dev, int event, int value); } hwc_methods_t; diff --git a/include/hardware/hwcomposer_defs.h b/include/hardware/hwcomposer_defs.h index 99465d3..5e2f5ff 100644 --- a/include/hardware/hwcomposer_defs.h +++ b/include/hardware/hwcomposer_defs.h @@ -138,7 +138,8 @@ enum { /* Allowed events for hwc_methods::eventControl() */ enum { - HWC_EVENT_VSYNC = 0 + HWC_EVENT_VSYNC = 0, + HWC_EVENT_ORIENTATION // To notify HWC about the device orientation }; /*****************************************************************************/ |