diff options
author | Treehugger Robot <android-build-prod@system.gserviceaccount.com> | 2022-06-21 15:39:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-06-21 15:39:46 +0000 |
commit | b2c623dae56c6b8ad98baeab49798023374c05e8 (patch) | |
tree | ce50a86b72b086365df93e3bf2b4526530a1047b | |
parent | 7d844c38698fe873829983c91122b07bc92be350 (diff) | |
parent | 95b8f1a463ed5d98c57c178b02a8ae34e6d7640e (diff) |
Merge "sf: do not check virtual display hint on main thread" into s-keystone-qcom-dev
-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 1899efe9a0..23c994ce61 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -4864,7 +4864,7 @@ status_t SurfaceFlinger::setTransactionState( const int64_t postTime = systemTime(); - if (mAsyncVdsCreationSupported) { + if (mAsyncVdsCreationSupported && std::this_thread::get_id() != mMainThreadId) { checkVirtualDisplayHint(displays); } |