From 95b8f1a463ed5d98c57c178b02a8ae34e6d7640e Mon Sep 17 00:00:00 2001 From: Vikas batchu Date: Wed, 8 Jun 2022 17:17:56 +0530 Subject: sf: do not check virtual display hint on main thread CRs-Fixed: 3224354 Change-Id: I0e20ddb96301c746a56a04703eb17d592d08896d --- services/surfaceflinger/SurfaceFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 630997cd3a..fefded8eed 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -4863,7 +4863,7 @@ status_t SurfaceFlinger::setTransactionState( const int64_t postTime = systemTime(); - if (mAsyncVdsCreationSupported) { + if (mAsyncVdsCreationSupported && std::this_thread::get_id() != mMainThreadId) { checkVirtualDisplayHint(displays); } -- cgit v1.2.3