OSDN Git Service

gralloc: add GRALLOC_USAGE_CURSOR flag
authorGreg Hackmann <ghackmann@google.com>
Wed, 9 Jul 2014 20:58:44 +0000 (13:58 -0700)
committerGreg Hackmann <ghackmann@google.com>
Wed, 23 Jul 2014 20:59:44 +0000 (20:59 +0000)
commit8931ce18e546fc80d6249f6d772865a73007e1ee
treeb1c50d14e0d40a5042b305815ab13361188ba51e
parentbe7f044b64c9448324fa791294135468e12e5a9b
gralloc: add GRALLOC_USAGE_CURSOR flag

On many devices, hardware cursors have stricter layout constraints than
other overlays.  GRALLOC_USAGE_CURSOR indicates a buffer may be used as
a cursor; byte order and padding should be chosen accordingly.

GRALLOC_USAGE_CURSOR must not cause allocation failure.  If the requested
properties (dimensions, format, other usage flags, etc.) aren't compatible with
the device's cursor hardware, the implementation must allocate the buffer
anyway, acting as if GRALLOC_USAGE_CURSOR were not specified.

Change-Id: I7d66e8d7c953421d996c5def3257d408f91962f4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
include/hardware/gralloc.h