summaryrefslogtreecommitdiff
path: root/sdm
diff options
context:
space:
mode:
authorGurpreet Singh Dhami <gdhami@codeaurora.org>2019-01-23 14:13:31 -0500
committerGurpreet Singh Dhami <gdhami@codeaurora.org>2019-01-23 14:48:04 -0500
commit812b746443fded8007cfe9b021076797e6a0a66f (patch)
tree63f0831924d0769b3c9c2485bd52c16dc6c4f3eb /sdm
parentca31549428194c83918baf78fd269db67b0c02ec (diff)
downloaddisplay-812b746443fded8007cfe9b021076797e6a0a66f.tar.gz
hwc: Return error code NoResources if create virtual display fails
Returning error code as NoResources is better because resources could be occupied by the other display. Currently error code as "Unsupported" is returned. Change-Id: I41b8511ba27c2d2769823c1984bc4a595aaae413
Diffstat (limited to 'sdm')
-rw-r--r--sdm/libs/hwc2/hwc_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp
index e4404648..e37e7ad7 100644
--- a/sdm/libs/hwc2/hwc_session.cpp
+++ b/sdm/libs/hwc2/hwc_session.cpp
@@ -1039,7 +1039,7 @@ HWC2::Error HWCSession::CreateVirtualDisplayObject(uint32_t width, uint32_t heig
height, format, &hwc_display_[HWC_DISPLAY_VIRTUAL]);
// TODO(user): validate width and height support
if (status) {
- return HWC2::Error::Unsupported;
+ return HWC2::Error::NoResources;
}
}