diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-12-15 14:43:58 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-12-19 13:42:15 -0800 |
commit | 5c0702fb581c0c2b82a1606f254f86147de1e331 (patch) | |
tree | 60221aa1e779482132315cc9cb5a34eadd0fae24 /modules/gralloc/framebuffer.cpp | |
parent | 0763ee2450949633bcb87b6729927095acb5f58a (diff) |
Fix compiler warnings.
* Remove unused local variables, functions, and private fields.
Bug: 66996870
Test: normal build
Change-Id: I3a5d6035a61be1b846dc8df3807088d2ca5dc4a3
Diffstat (limited to 'modules/gralloc/framebuffer.cpp')
-rw-r--r-- | modules/gralloc/framebuffer.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp index 7ef8098d..97964572 100644 --- a/modules/gralloc/framebuffer.cpp +++ b/modules/gralloc/framebuffer.cpp @@ -63,35 +63,17 @@ struct fb_context_t { static int fb_setSwapInterval(struct framebuffer_device_t* dev, int interval) { - fb_context_t* ctx = (fb_context_t*)dev; if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) return -EINVAL; // FIXME: implement fb_setSwapInterval return 0; } -static int fb_setUpdateRect(struct framebuffer_device_t* dev, - int l, int t, int w, int h) -{ - if (((w|h) <= 0) || ((l|t)<0)) - return -EINVAL; - - fb_context_t* ctx = (fb_context_t*)dev; - private_module_t* m = reinterpret_cast<private_module_t*>( - dev->common.module); - m->info.reserved[0] = 0x54445055; // "UPDT"; - m->info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); - m->info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); - return 0; -} - static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) { if (private_handle_t::validate(buffer) < 0) return -EINVAL; - 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); @@ -279,7 +261,6 @@ int mapFrameBufferLocked(struct private_module_t* module) * map the framebuffer */ - int err; size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual); module->framebuffer = new private_handle_t(dup(fd), fbSize, 0); |