aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hwc2_device/HwcDisplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/hwc2_device/HwcDisplay.cpp b/hwc2_device/HwcDisplay.cpp
index 76e2745..9a31ac8 100644
--- a/hwc2_device/HwcDisplay.cpp
+++ b/hwc2_device/HwcDisplay.cpp
@@ -606,6 +606,10 @@ HWC2::Error HwcDisplay::SetClientTarget(buffer_handle_t target,
return HWC2::Error::None;
}
+ if (IsInHeadlessMode()) {
+ return HWC2::Error::None;
+ }
+
client_layer_.PopulateLayerData(/*test = */ true);
if (!client_layer_.IsLayerUsableAsDevice()) {
ALOGE("Client layer must be always usable by DRM/KMS");