diff options
author | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-06-08 17:17:56 +0530 |
---|---|---|
committer | BOREDDY MAHIDHAR <quic_bmahidha@quicinc.com> | 2023-07-31 13:35:41 +0530 |
commit | edfe3fd65bae1180c72a4eb657f1d51d1306c220 (patch) | |
tree | 85d68d12d1865240e2ad7e3e9bd3be4338847c94 | |
parent | ce8fbd20ed87349d96f6d4cb1da75227bce7275c (diff) |
sf: do not check virtual display hint on main thread
CRs-Fixed: 3575726
Change-Id: I0e20ddb96301c746a56a04703eb17d592d08896d
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 63a298b643..a757977904 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -5433,7 +5433,7 @@ status_t SurfaceFlinger::setTransactionState( const int64_t postTime = systemTime(); - if (mAsyncVdsCreationSupported) { + if (mAsyncVdsCreationSupported && std::this_thread::get_id() != mMainThreadId) { checkVirtualDisplayHint(displays); } |