Add synchronous transaction to wait for setInputWindow to complete (4/n)
Wait for callback from InputDispatcher before returning to client.
If the request to SF has the flag syncInputWindows, wait until the
callback setInputWindowsFinished has been called from InputDispatcher
before returning to the client.
Bug: 123041491
Test: Builds, runs
Change-Id: I9d3fb83442cf344c43449bb072a1c31b300b2879
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index b240ebf..9c0c5ba 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -1125,6 +1125,7 @@
ui::DisplayPrimaries mInternalDisplayPrimaries;
sp<SetInputWindowsListener> mSetInputWindowsListener;
+ bool mPendingSyncInputWindows GUARDED_BY(mStateLock);
};
}; // namespace android