hwc: fix for not ignoring framebuffer
If the FB is not used, because all the app layers are overlays, then set the
flag to have the driver not fetch from the FB pipe.
Bug: 7183992
Change-Id: I96ecc1610ac052e8512158d189b0614ecf82d139
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/libhwcomposer/hwc_video.cpp b/libhwcomposer/hwc_video.cpp
index 5791ffd..cb5cf1e 100644
--- a/libhwcomposer/hwc_video.cpp
+++ b/libhwcomposer/hwc_video.cpp
@@ -131,7 +131,7 @@
}
ovutils::eIsFg isFgFlag = ovutils::IS_FG_OFF;
- if (ctx->numHwLayers == 1) {
+ if (ctx->listStats[HWC_DISPLAY_PRIMARY].numAppLayers == 1) {
isFgFlag = ovutils::IS_FG_SET;
}
@@ -203,7 +203,7 @@
}
ovutils::eIsFg isFgFlag = ovutils::IS_FG_OFF;
- if (ctx->numHwLayers == 1) {
+ if (ctx->listStats[HWC_DISPLAY_EXTERNAL].numAppLayers == 1) {
isFgFlag = ovutils::IS_FG_SET;
}