diff options
author | Raj Kamal <rkamal@codeaurora.org> | 2014-09-25 14:10:54 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:22:28 -0600 |
commit | 67ec1ad104583151740e866066185fdad54e82c9 (patch) | |
tree | eab918e13beeb7b61eaf8e21765fe6118c9f66a8 | |
parent | 24e0fdd93b8fedf65ae73d0e006abf0b64a1a7c2 (diff) | |
download | frameworks_native-67ec1ad104583151740e866066185fdad54e82c9.zip frameworks_native-67ec1ad104583151740e866066185fdad54e82c9.tar.gz frameworks_native-67ec1ad104583151740e866066185fdad54e82c9.tar.bz2 |
sf: Avoid disabling DispSync resync
Avoid disabling DispSync resync if app and SF events aren't
using phase offsets. This prevents hardware VSYNC from turning
on always whenever something needs to be drawn, thereby
bringing down the power numbers.
Change-Id: I83c8f79eb46b9fdaa730ec32767ebed3286347b8
-rw-r--r-- | services/surfaceflinger/DispSync.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/services/surfaceflinger/DispSync.h b/services/surfaceflinger/DispSync.h index 67142b6..ebe19a5 100644 --- a/services/surfaceflinger/DispSync.h +++ b/services/surfaceflinger/DispSync.h @@ -26,11 +26,8 @@ namespace android { // Ignore present (retire) fences if the device doesn't have support for the -// sync framework, or if all phase offsets are zero. The latter is useful -// because it allows us to avoid resync bursts on devices that don't need -// phase-offset VSYNC events. -#if defined(RUNNING_WITHOUT_SYNC_FRAMEWORK) || \ - (VSYNC_EVENT_PHASE_OFFSET_NS == 0 && SF_VSYNC_EVENT_PHASE_OFFSET_NS == 0) +// sync framework. +#if defined(RUNNING_WITHOUT_SYNC_FRAMEWORK) static const bool kIgnorePresentFences = true; #else static const bool kIgnorePresentFences = false; |