diff options
author | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-06-08 17:17:56 +0530 |
---|---|---|
committer | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-06-21 15:19:19 +0530 |
commit | 95b8f1a463ed5d98c57c178b02a8ae34e6d7640e (patch) | |
tree | b7a56db0f2fca9e88eb40f2ea5436146ce259884 /services/surfaceflinger/SurfaceFlinger.cpp | |
parent | 0cd2304dfad25401cf47174689d446aa0ecbbe33 (diff) |
sf: do not check virtual display hint on main thread
CRs-Fixed: 3224354
Change-Id: I0e20ddb96301c746a56a04703eb17d592d08896d
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-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 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); } |