diff options
author | Marissa Wall <marissaw@google.com> | 2017-09-18 13:26:15 -0700 |
---|---|---|
committer | Artem Borisov <dedsa2002@gmail.com> | 2017-11-02 22:02:52 +0300 |
commit | 40c3d80d75ffd7c227cfe59c3c99b3d2a168b7fa (patch) | |
tree | e61cece10b07fc29c9f5461d262b71609f4b19b6 | |
parent | 4ca109d8f47368eb263a79872919918e6c20197e (diff) | |
download | android_frameworks_native-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.gz android_frameworks_native-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.bz2 android_frameworks_native-staging/lineage-15.0_rebase-android-8.0.0_r23.zip |
sf: Initialize DispSync in SurfaceFlinger_hwc1staging/lineage-15.0_rebase-android-8.0.0_r23
SurfaceFlinger_hwc1 was not initializing DispSync. The hw vsyncs
were not getting processed resulting in 1 frame per second.
Fixes b/65484547.
Test: Boot Hikey/Hikey960. Frame rate should be higher than
1 frame per second.
Change-Id: I1a80be294488440abdf5f14ea3e1f3c9c773b21c
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger_hwc1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger_hwc1.cpp b/services/surfaceflinger/SurfaceFlinger_hwc1.cpp index 9b169b37f..292467559 100644 --- a/services/surfaceflinger/SurfaceFlinger_hwc1.cpp +++ b/services/surfaceflinger/SurfaceFlinger_hwc1.cpp @@ -178,6 +178,8 @@ SurfaceFlinger::SurfaceFlinger() maxFrameBufferAcquiredBuffers = getInt64< ISurfaceFlingerConfigs, &ISurfaceFlingerConfigs::maxFrameBufferAcquiredBuffers>(2); + mPrimaryDispSync.init(hasSyncFramework, dispSyncPresentTimeOffset); + char value[PROPERTY_VALUE_MAX]; property_get("ro.bq.gpu_to_cpu_unsupported", value, "0"); |