hwc: Call first set after receiving first App layer
For MDP3 target we have to wait till first app layer.
Splash screen will be shown till that point.
Change-Id: I11422ff4183b7aafeb107a8dfc4d0cdae1ab17ea
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index 093b950..c51efba 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -281,14 +281,15 @@
hwc_context_t* ctx = (hwc_context_t*)(dev);
const int dpy = HWC_DISPLAY_PRIMARY;
bool fbComp = false;
-
+ static int compStart = false;
if (!ctx->mBootAnimCompleted)
processBootAnimCompleted(ctx);
if (LIKELY(list && (list->numHwLayers > 1 ||
- ctx->mMDP.version < qdutils::MDP_V4_0)) &&
+ (ctx->mMDP.version < qdutils::MDP_V4_0 && compStart))) &&
ctx->dpyAttr[dpy].connected && (ctx->dpyAttr[dpy].isActive ||
ctx->mHDMIDisplay->isHDMIPrimaryDisplay())
&& !ctx->dpyAttr[dpy].isPause) {
+ compStart = true;
// When HDMI is primary we should rely on the first valid
// draw call in order to activate the display