commit | e48f7860b9c5a49850a4bc8b26ad2c69000a7da4 | [log] [tgz] |
---|---|---|
author | Caio Schnepper <caioschnepper@gmail.com> | Mon Nov 30 11:05:10 2015 -0200 |
committer | Caio Schnepper <caioschnepper@gmail.com> | Mon Nov 30 11:05:10 2015 -0200 |
tree | 8cf18eddcabdc7f24f4a6c446da0c132910eec03 | |
parent | e0568e128bc93ce4473438e1ef95dbbebb41b850 [diff] |
libgralloc: Fix refresh rate calculation Calculated refresh rate can be 3% off Reference: https://code.google.com/p/android/issues/detail?id=69391 Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c
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 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 );