diff options
author | JohnnLee <johnnlee@google.com> | 2021-06-03 11:38:19 +0800 |
---|---|---|
committer | JohnnLee <johnnlee@google.com> | 2021-06-03 11:58:29 +0800 |
commit | 8d5fe739bfa66f9403867f40c671f23f8bad5d9b (patch) | |
tree | 8ebcb5dda5956e4d8ec9a4387b0935d153d18a4c | |
parent | a1d86c0ca8ef85796b2915b213447268c5ee44a6 (diff) | |
download | display-8d5fe739bfa66f9403867f40c671f23f8bad5d9b.tar.gz |
Revert "hwc: CWB supported only for primary display"
This reverts commit 37eb89fbeaad8cb90cf78e0108b29cd8d8754f80.
Change-Id: I03c613592b86e21790449fb40fa48cdf788c9033
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index f79ae244..738f97e3 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -3206,7 +3206,7 @@ int32_t HWCSession::GetReadbackBufferAttributes(hwc2_device_t *device, hwc2_disp } if (display != HWC_DISPLAY_PRIMARY) { - return HWC2_ERROR_UNSUPPORTED; + return HWC2_ERROR_BAD_DISPLAY; } HWCSession *hwc_session = static_cast<HWCSession *>(device); @@ -3231,7 +3231,7 @@ int32_t HWCSession::SetReadbackBuffer(hwc2_device_t *device, hwc2_display_t disp } if (display != HWC_DISPLAY_PRIMARY) { - return HWC2_ERROR_UNSUPPORTED; + return HWC2_ERROR_BAD_DISPLAY; } HWCSession *hwc_session = static_cast<HWCSession *>(device); @@ -3257,7 +3257,7 @@ int32_t HWCSession::GetReadbackBufferFence(hwc2_device_t *device, hwc2_display_t } if (display != HWC_DISPLAY_PRIMARY) { - return HWC2_ERROR_UNSUPPORTED; + return HWC2_ERROR_BAD_DISPLAY; } return CallDisplayFunction(device, display, &HWCDisplay::GetReadbackBufferFence, release_fence); |