gralloc: add dump hooks to gralloc/hwcomposer
Change-Id: I27bf46103b4d1d547c42a6de4f3270a6dfd7b7ec
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 @@
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 @@
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;