summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-08-28 15:07:50 +0159
committerUbuntu <vishal.bhoj@linaro.org>2014-06-05 09:53:27 +0000
commitab02933eb78381e40fd8994d2cb885e17e46b600 (patch)
tree0724c07a7ed018c4530d1eb2bcfa53ae5693ccaf
parent56910cf52332219c6a23bc12596b261c127d93bf (diff)
downloadlibhardware-ab02933eb78381e40fd8994d2cb885e17e46b600.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;
}