[Goldfish-opengl] Add empty function definition for alloc_device_t::dump() am: 9160f9f2fa am: 7359abbf6d
am: 65576fcaca
BUG: 125540538
Change-Id: I00aeb57a840ca5932011a3ae01d4f089c9bf8a2d
(cherry picked from commit 1a85198d3287a31734f62f3f83b97c1c86f66fa9)
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp
index 851f3b0..1996965 100644
--- a/system/gralloc/gralloc.cpp
+++ b/system/gralloc/gralloc.cpp
@@ -457,6 +457,8 @@
 //
 // gralloc device functions (alloc interface)
 //
+static void gralloc_dump(struct alloc_device_t* /*dev*/, char* /*buff*/, int /*buff_len*/) {}
+
 static int gralloc_alloc(alloc_device_t* dev,
                          int w, int h, int format, int usage,
                          buffer_handle_t* pHandle, int* pStride)
@@ -1430,6 +1432,7 @@
 
         dev->device.alloc   = gralloc_alloc;
         dev->device.free    = gralloc_free;
+        dev->device.dump = gralloc_dump;
         pthread_mutex_init(&dev->lock, NULL);
 
         *device = &dev->device.common;