SF: Use vsync workaround to detect hotplug errors
HWC sets a system property,
debug.sf.hwc_hotplug_error_via_neg_vsync, to inform SF that
it should check negative vsync, parse and propagate any error
code on hotplug event up the stack.
Bug: 241286153
Test: manual
Change-Id: I32214378b00a1b002fa144dbef3f6610818a053a
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index ef6b815..22e0730 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -1233,6 +1233,8 @@
hal::Connection connection = hal::Connection::INVALID;
};
+ bool mIsHotplugErrViaNegVsync = false;
+
std::mutex mHotplugMutex;
std::vector<HotplugEvent> mPendingHotplugEvents GUARDED_BY(mHotplugMutex);