display: Enable triple framebuffers

Change-Id: I323c10b939277477f724c2d0a20f9c6da4899481
diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp
index 931024b..bd9ca9c 100644
--- a/libgralloc/framebuffer.cpp
+++ b/libgralloc/framebuffer.cpp
@@ -582,9 +582,10 @@
     struct qbuf_t qb;
     fb_context_t* ctx = (fb_context_t*)dev;
 
-    private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer);
-    private_module_t* m = reinterpret_cast<private_module_t*>(
-        dev->common.module);
+    private_handle_t const* hnd =
+        reinterpret_cast<private_handle_t const*>(buffer);
+    private_module_t* m =
+        reinterpret_cast<private_module_t*>(dev->common.module);
 
     if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
 
@@ -1001,6 +1002,7 @@
             const_cast<float&>(dev->device.fps) = m->fps;
             const_cast<int&>(dev->device.minSwapInterval) = PRIV_MIN_SWAP_INTERVAL;
             const_cast<int&>(dev->device.maxSwapInterval) = PRIV_MAX_SWAP_INTERVAL;
+            const_cast<int&>(dev->device.numFramebuffers) = m->numBuffers;
             if (m->finfo.reserved[0] == 0x5444 &&
                 m->finfo.reserved[1] == 0x5055) {
                 dev->device.setUpdateRect = fb_setUpdateRect;