diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/gralloc.h | 16 | ||||
-rw-r--r-- | include/hardware/hwcomposer.h | 8 |
2 files changed, 21 insertions, 3 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 84834aa..f4fc215 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -229,7 +229,13 @@ typedef struct alloc_device_t { int (*free)(struct alloc_device_t* dev, buffer_handle_t handle); - void* reserved_proc[8]; + /* 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; @@ -324,8 +330,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; diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h index c72d466..321dfc1 100644 --- a/include/hardware/hwcomposer.h +++ b/include/hardware/hwcomposer.h @@ -278,8 +278,14 @@ typedef struct hwc_composer_device { hwc_display_t dpy, hwc_surface_t sur, hwc_layer_list_t* list); + /* + * This hook is OPTIONAL. + * + * If non NULL it will be caused by SurfaceFlinger on dumpsys + */ + void (*dump)(struct hwc_composer_device* dev, char *buff, int buff_len); - void* reserved_proc[8]; + void* reserved_proc[7]; } hwc_composer_device_t; |