diff options
author | Caio Schnepper <caioschnepper@gmail.com> | 2015-11-30 11:05:10 -0200 |
---|---|---|
committer | Caio Schnepper <caioschnepper@gmail.com> | 2015-11-30 05:13:02 -0800 |
commit | 1ed061f3963320aa38783950babd5735ca5558dd (patch) | |
tree | eae3e047ca670bb13212f297fb72c7a1c32f887f /exynos4/hal/libgralloc_ump/framebuffer_device.cpp | |
parent | cbdae1245db5faf4ae40f0f6d988fad2b023d6ee (diff) | |
download | android_hardware_samsung-1ed061f3963320aa38783950babd5735ca5558dd.tar.gz android_hardware_samsung-1ed061f3963320aa38783950babd5735ca5558dd.tar.bz2 android_hardware_samsung-1ed061f3963320aa38783950babd5735ca5558dd.zip |
libgralloc: Fix refresh rate calculationcm-12.1
Calculated refresh rate can be 3% off
Reference: https://code.google.com/p/android/issues/detail?id=69391
Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c
Diffstat (limited to 'exynos4/hal/libgralloc_ump/framebuffer_device.cpp')
-rw-r--r-- | exynos4/hal/libgralloc_ump/framebuffer_device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exynos4/hal/libgralloc_ump/framebuffer_device.cpp b/exynos4/hal/libgralloc_ump/framebuffer_device.cpp index b141878..814e668 100644 --- a/exynos4/hal/libgralloc_ump/framebuffer_device.cpp +++ b/exynos4/hal/libgralloc_ump/framebuffer_device.cpp @@ -263,8 +263,8 @@ int init_frame_buffer_locked(struct private_module_t* module) int refreshRate = 1000000000000000LLU / ( - uint64_t( info.upper_margin + info.lower_margin + info.yres ) - * ( info.left_margin + info.right_margin + info.xres ) + uint64_t( info.upper_margin + info.lower_margin + info.vsync_len + info.yres ) + * ( info.left_margin + info.right_margin + info.hsync_len + info.xres ) * info.pixclock ); |