OSDN Git Service

Gralloc: add a HWComposer usage bit
authorJamie Gennis <jgennis@google.com>
Wed, 10 Aug 2011 18:41:52 +0000 (11:41 -0700)
committerJamie Gennis <jgennis@google.com>
Wed, 10 Aug 2011 18:41:52 +0000 (11:41 -0700)
This change adds a new Gralloc usage bit to indicate that the Gralloc
buffer being allocated will be passed to the HWComposer HAL module.

Change-Id: If901f886cb22fc8379811898db3a380a61c0e442

include/hardware/gralloc.h

index 8ee0240..9daad1c 100644 (file)
@@ -70,6 +70,8 @@ enum {
     GRALLOC_USAGE_HW_RENDER       = 0x00000200,
     /* buffer will be used by the 2D hardware blitter */
     GRALLOC_USAGE_HW_2D           = 0x00000400,
+    /* buffer will be used by the HWComposer HAL module */
+    GRALLOC_USAGE_HW_COMPOSER     = 0x00000800,
     /* buffer will be used with the framebuffer device */
     GRALLOC_USAGE_HW_FB           = 0x00001000,
     /* mask for the software usage bit-mask */