aboutsummaryrefslogtreecommitdiff
path: root/system/hwc3/ClientFrameComposer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/hwc3/ClientFrameComposer.cpp')
-rw-r--r--system/hwc3/ClientFrameComposer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/hwc3/ClientFrameComposer.cpp b/system/hwc3/ClientFrameComposer.cpp
index d7f8b559..284a46f9 100644
--- a/system/hwc3/ClientFrameComposer.cpp
+++ b/system/hwc3/ClientFrameComposer.cpp
@@ -146,6 +146,11 @@ HWC3::Error ClientFrameComposer::presentDisplay(
}
DisplayInfo& displayInfo = displayInfoIt->second;
+ if (!displayInfo.clientTargetDrmBuffer) {
+ ALOGW("%s: display:%" PRIu64 " no client target set, nothing to present.",
+ __FUNCTION__, displayId);
+ return HWC3::Error::None;
+ }
::android::base::unique_fd fence = display->getClientTarget().getFence();