diff options
author | Mathias Agopian <mathias@google.com> | 2009-05-07 17:39:31 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-05-07 17:39:31 -0700 |
commit | f5cf8f842a5736281098ef1f8f837ab688b35707 (patch) | |
tree | 4117f0bdabd93188df2eed38c963424744f71556 /modules/gralloc/framebuffer.cpp | |
parent | 485e69809aef8bf301b6bf19c03dc2d7693aaa1a (diff) | |
download | hardware_libhardware-f5cf8f842a5736281098ef1f8f837ab688b35707.zip hardware_libhardware-f5cf8f842a5736281098ef1f8f837ab688b35707.tar.gz hardware_libhardware-f5cf8f842a5736281098ef1f8f837ab688b35707.tar.bz2 |
better documentation for (*setUpdateRect)()
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; |