summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-08-28 15:07:50 +0159
committerAmit Pundir <Amit.Pundir@linaro.org>2013-02-13 08:42:51 +0530
commit48421b711e5ad1317553c0972341fea0d2131cd7 (patch)
treea6bb8a609715c56317e84ed0fca0e2d563719690
parent48697f6dc249d1238243677de77d3a0eb6a17b3f (diff)
downloadlibhardware-48421b711e5ad1317553c0972341fea0d2131cd7.tar.gz
gralloc: Use FBIOPAN_DISPLAY instead of FBIOPUT_VSCREENINFO to refresh display.
Fixes lp bug 824506, should provide minor speedup on other hardware.
-rw-r--r--modules/gralloc/framebuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp
index 326f2aeb..e0831df0 100644
--- a/modules/gralloc/framebuffer.cpp
+++ b/modules/gralloc/framebuffer.cpp
@@ -97,8 +97,8 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer)
const size_t offset = hnd->base - m->framebuffer->base;
m->info.activate = FB_ACTIVATE_VBL;
m->info.yoffset = offset / m->finfo.line_length;
- if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) {
- ALOGE("FBIOPUT_VSCREENINFO failed");
+ if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) {
+ LOGE("FBIOPAN_DISPLAY failed");
m->base.unlock(&m->base, buffer);
return -errno;
}