Flush host connection on rcFBPost
Fixes glitches with app launching / switching to/from client mode
Thanks to huans@ for the find!
Bug: 147760640 149598490
Test: run emulator with hwcomposer disabled
Change-Id: I4a0f7a146d7f437e0b76b4b7958be0a12529d28a
diff --git a/system/hwc2/EmuHWC2.cpp b/system/hwc2/EmuHWC2.cpp
index f2fb947..14bb545 100644
--- a/system/hwc2/EmuHWC2.cpp
+++ b/system/hwc2/EmuHWC2.cpp
@@ -1308,6 +1308,7 @@
hostCon->lock();
rcEnc->rcFBPost(rcEnc, hostCon->grallocHelper()->getHostHandle(h));
+ hostCon->flush();
hostCon->unlock();
}