From 1ded1767f972fd3e4c54915f6cfce3caf61aa860 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Mon, 28 May 2012 06:46:22 -0700 Subject: [PATCH] gralloc: Remove ifdef around assignment of perform * Perform is used for more than HDMI, and without this set on devices that don't have HDMI enabled, crashes result. Change-Id: I9029892a12ab09ffb66b3560f796ffb99ea57460 --- libgralloc/framebuffer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp index 73d2143..d089a0c 100644 --- a/libgralloc/framebuffer.cpp +++ b/libgralloc/framebuffer.cpp @@ -973,9 +973,7 @@ int fb_device_open(hw_module_t const* module, const char* name, dev->device.setUpdateRect = 0; dev->device.compositionComplete = fb_compositionComplete; dev->device.lockBuffer = fb_lockBuffer; -#if defined(HDMI_DUAL_DISPLAY) dev->device.perform = fb_perform; -#endif private_module_t* m = (private_module_t*)module; status = mapFrameBuffer(m);