diff options
author | Riley Andrews <riandrews@google.com> | 2014-06-30 15:55:55 -0700 |
---|---|---|
committer | Riley Andrews <riandrews@google.com> | 2014-07-24 00:53:21 +0000 |
commit | 4a6788b02fb2bd174ac9e2386029785f084b7fdd (patch) | |
tree | 05e73563c81c7e8c47ddaddab70165e9c243ebf6 /include/hardware/hwcomposer_defs.h | |
parent | 09c1736aafba8f951035b56b14d2793c70870884 (diff) | |
download | hardware_libhardware-4a6788b02fb2bd174ac9e2386029785f084b7fdd.zip hardware_libhardware-4a6788b02fb2bd174ac9e2386029785f084b7fdd.tar.gz hardware_libhardware-4a6788b02fb2bd174ac9e2386029785f084b7fdd.tar.bz2 |
Add interface for doing asynchonous cursor layer updates to hwcomposer
Change-Id: If2ab523b400cfb586c8e1fed98f2ebe3538c0419
Diffstat (limited to 'include/hardware/hwcomposer_defs.h')
-rw-r--r-- | include/hardware/hwcomposer_defs.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/hardware/hwcomposer_defs.h b/include/hardware/hwcomposer_defs.h index d24bc9d..9a52436 100644 --- a/include/hardware/hwcomposer_defs.h +++ b/include/hardware/hwcomposer_defs.h @@ -77,6 +77,16 @@ enum { * by SurfaceFlinger (just as if compositionType was set to HWC_OVERLAY). */ HWC_SKIP_LAYER = 0x00000001, + + /* + * HWC_IS_CURSOR_LAYER is set by surfaceflinger to indicate that this + * layer is being used as a cursor on this particular display, and that + * surfaceflinger can potentially perform asynchronous position updates for + * this layer. If a call to prepare() returns HWC_CURSOR_OVERLAY for the + * composition type of this layer, then the hwcomposer will allow async + * position updates to this layer via setCursorPositionAsync(). + */ + HWC_IS_CURSOR_LAYER = 0x00000002 }; /* @@ -100,8 +110,13 @@ enum { /* this layer's contents are taken from a sideband buffer stream. * Added in HWC_DEVICE_API_VERSION_1_4. */ HWC_SIDEBAND = 4, -}; + /* this layer's composition will be handled by hwcomposer by dedicated + cursor overlay hardware. hwcomposer will also all async position updates + of this layer outside of the normal prepare()/set() loop. Added in + HWC_DEVICE_API_VERSION_1_4. */ + HWC_CURSOR_OVERLAY = 5 + }; /* * hwc_layer_t::blending values */ |