diff options
Diffstat (limited to 'include/hardware/gralloc.h')
-rw-r--r-- | include/hardware/gralloc.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 73cc9e0..5eefe79 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -28,6 +28,8 @@ __BEGIN_DECLS +#define GRALLOC_API_VERSION 1 + /** * The id of this module */ @@ -70,6 +72,19 @@ enum { /* mask for the software usage bit-mask */ GRALLOC_USAGE_HW_MASK = 0x00001F00, + /* 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, + /* implementation-specific private usage flags */ GRALLOC_USAGE_PRIVATE_0 = 0x10000000, GRALLOC_USAGE_PRIVATE_1 = 0x20000000, @@ -222,6 +237,13 @@ typedef struct alloc_device_t { int (*free)(struct alloc_device_t* dev, buffer_handle_t handle); + /* This hook is OPTIONAL. + * + * If non NULL it will be caused by SurfaceFlinger on dumpsys + */ + void (*dump)(struct alloc_device_t *dev, char *buff, int buff_len); + + void* reserved_proc[7]; } alloc_device_t; @@ -316,8 +338,14 @@ typedef struct framebuffer_device_t { int (*compositionComplete)(struct framebuffer_device_t* dev); + /* + * This hook is OPTIONAL. + * + * If non NULL it will be caused by SurfaceFlinger on dumpsys + */ + void (*dump)(struct framebuffer_device_t* dev, char *buff, int buff_len); - void* reserved_proc[8]; + void* reserved_proc[7]; } framebuffer_device_t; |