From f5cf8f842a5736281098ef1f8f837ab688b35707 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 7 May 2009 17:39:31 -0700 Subject: better documentation for (*setUpdateRect)() --- modules/gralloc/framebuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gralloc/framebuffer.cpp') 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(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; -- cgit v1.1