diff options
author | Yogendra Charya Tangalapally <yogendra@codeaurora.org> | 2019-04-16 13:39:51 +0530 |
---|---|---|
committer | dianlujitao <dianlujitao@lineageos.org> | 2020-05-20 21:28:12 +0800 |
commit | 1710e8f68eb64330703b3d68010c3cbeef5f7eb2 (patch) | |
tree | cbeba0095c876229a9286a206bbae7f590baf0f7 | |
parent | 187218450fbb33df85fbd6448e7bc712b6b91b5d (diff) | |
download | android_frameworks_native-1710e8f68eb64330703b3d68010c3cbeef5f7eb2.tar.gz android_frameworks_native-1710e8f68eb64330703b3d68010c3cbeef5f7eb2.tar.bz2 android_frameworks_native-1710e8f68eb64330703b3d68010c3cbeef5f7eb2.zip |
sf: Remove redundant allocateVirtualDisplay.
- avoid WFD instance to be created twice.
Change-Id: I210986acad103e1c39bb476223f86fcbe3d2ad37
CRs-Fixed: 2435981
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 08ca84f06..1264285df 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2842,9 +2842,6 @@ void SurfaceFlinger::processDisplayChangesLocked() { // Replace with native_window_get_consumer_usage ? status = state.surface->getConsumerUsage(&usage); ALOGW_IF(status != NO_ERROR, "Unable to query usage (%d)", status); - displayId = - getHwComposer().allocateVirtualDisplay(width, height, &format); - ALOGW_IF(status != NO_ERROR, "Unable to query usage (%d)", status); if ((status == NO_ERROR) && canAllocateHwcDisplayIdForVDS(usage)) { displayId = getHwComposer().allocateVirtualDisplay(width, height, &format); |