diff options
Diffstat (limited to 'modules/gralloc/framebuffer.cpp')
-rw-r--r-- | modules/gralloc/framebuffer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp index 5077a0d..d885ae8 100644 --- a/modules/gralloc/framebuffer.cpp +++ b/modules/gralloc/framebuffer.cpp @@ -38,6 +38,9 @@ /*****************************************************************************/ +// should be a build option +#define SUPPORTS_UPDATE_ON_DEMAND 1 + #define NUM_BUFFERS 2 @@ -340,7 +343,9 @@ int fb_device_open(hw_module_t const* module, const char* name, dev->device.common.module = const_cast<hw_module_t*>(module); dev->device.common.close = fb_close; dev->device.setSwapInterval = fb_setSwapInterval; +#if SUPPORTS_UPDATE_ON_DEMAND dev->device.setUpdateRect = fb_setUpdateRect; +#endif dev->device.post = fb_post; private_module_t* m = (private_module_t*)module; |