OSDN Git Service

gralloc: add padding to alloc_device_t and hwc_composer_device_t
authorErik Gilling <konkers@android.com>
Wed, 8 Dec 2010 02:46:04 +0000 (18:46 -0800)
committerErik Gilling <konkers@android.com>
Wed, 8 Dec 2010 23:16:52 +0000 (15:16 -0800)
also adds version #defines

Change-Id: I89f19fc7811ea9c9efb579a9f6abb4c3d9011bbf

include/hardware/gralloc.h
include/hardware/hwcomposer.h

index 788815a..84834aa 100644 (file)
@@ -28,6 +28,8 @@
 
 __BEGIN_DECLS
 
+#define GRALLOC_API_VERSION 1
+
 /**
  * The id of this module
  */
@@ -227,6 +229,7 @@ typedef struct alloc_device_t {
     int (*free)(struct alloc_device_t* dev,
             buffer_handle_t handle);
 
+    void* reserved_proc[8];
 } alloc_device_t;
 
 
index fdf2f59..c72d466 100644 (file)
@@ -27,6 +27,9 @@
 __BEGIN_DECLS
 
 /*****************************************************************************/
+
+#define HWC_API_VERSION 1
+
 /**
  * The id of this module
  */
@@ -276,6 +279,8 @@ typedef struct hwc_composer_device {
                 hwc_surface_t sur,
                 hwc_layer_list_t* list);
 
+    void* reserved_proc[8];
+
 } hwc_composer_device_t;