gralloc: Sort usage flags
Sorts the usage flags in increasing order so it's easier to see where
the gaps are.
Bug: 21609491
Change-Id: I98af3c67be84c6c5137767f3cd7a8bd63dfb5c03
(cherry picked from commit fd2d859445)
This commit is contained in:
@@ -95,6 +95,21 @@ enum {
|
|||||||
GRALLOC_USAGE_HW_COMPOSER = 0x00000800,
|
GRALLOC_USAGE_HW_COMPOSER = 0x00000800,
|
||||||
/* buffer will be used with the framebuffer device */
|
/* buffer will be used with the framebuffer device */
|
||||||
GRALLOC_USAGE_HW_FB = 0x00001000,
|
GRALLOC_USAGE_HW_FB = 0x00001000,
|
||||||
|
|
||||||
|
/* buffer should be displayed full-screen on an external display when
|
||||||
|
* possible */
|
||||||
|
GRALLOC_USAGE_EXTERNAL_DISP = 0x00002000,
|
||||||
|
|
||||||
|
/* Must have a hardware-protected path to external display sink for
|
||||||
|
* this buffer. If a hardware-protected path is not available, then
|
||||||
|
* either don't composite only this buffer (preferred) to the
|
||||||
|
* external sink, or (less desirable) do not route the entire
|
||||||
|
* composition to the external sink. */
|
||||||
|
GRALLOC_USAGE_PROTECTED = 0x00004000,
|
||||||
|
|
||||||
|
/* buffer may be used as a cursor */
|
||||||
|
GRALLOC_USAGE_CURSOR = 0x00008000,
|
||||||
|
|
||||||
/* buffer will be used with the HW video encoder */
|
/* buffer will be used with the HW video encoder */
|
||||||
GRALLOC_USAGE_HW_VIDEO_ENCODER = 0x00010000,
|
GRALLOC_USAGE_HW_VIDEO_ENCODER = 0x00010000,
|
||||||
/* buffer will be written by the HW camera pipeline */
|
/* buffer will be written by the HW camera pipeline */
|
||||||
@@ -111,22 +126,6 @@ enum {
|
|||||||
/* buffer will be used as a RenderScript Allocation */
|
/* buffer will be used as a RenderScript Allocation */
|
||||||
GRALLOC_USAGE_RENDERSCRIPT = 0x00100000,
|
GRALLOC_USAGE_RENDERSCRIPT = 0x00100000,
|
||||||
|
|
||||||
/* buffer should be displayed full-screen on an external display when
|
|
||||||
* possible
|
|
||||||
*/
|
|
||||||
GRALLOC_USAGE_EXTERNAL_DISP = 0x00002000,
|
|
||||||
|
|
||||||
/* Must have a hardware-protected path to external display sink for
|
|
||||||
* this buffer. If a hardware-protected path is not available, then
|
|
||||||
* either don't composite only this buffer (preferred) to the
|
|
||||||
* external sink, or (less desirable) do not route the entire
|
|
||||||
* composition to the external sink.
|
|
||||||
*/
|
|
||||||
GRALLOC_USAGE_PROTECTED = 0x00004000,
|
|
||||||
|
|
||||||
/* buffer may be used as a cursor */
|
|
||||||
GRALLOC_USAGE_CURSOR = 0x00008000,
|
|
||||||
|
|
||||||
/* Set by the consumer to indicate to the producer that they may attach a
|
/* Set by the consumer to indicate to the producer that they may attach a
|
||||||
* buffer that they did not detach from the BufferQueue. Will be filtered
|
* buffer that they did not detach from the BufferQueue. Will be filtered
|
||||||
* out by GRALLOC_USAGE_ALLOC_MASK, so gralloc modules will not need to
|
* out by GRALLOC_USAGE_ALLOC_MASK, so gralloc modules will not need to
|
||||||
|
|||||||
Reference in New Issue
Block a user