diff options
author | Gurpreet Singh Dhami <gdhami@codeaurora.org> | 2019-01-23 14:13:31 -0500 |
---|---|---|
committer | Gurpreet Singh Dhami <gdhami@codeaurora.org> | 2019-01-23 14:48:04 -0500 |
commit | 812b746443fded8007cfe9b021076797e6a0a66f (patch) | |
tree | 63f0831924d0769b3c9c2485bd52c16dc6c4f3eb /sdm | |
parent | ca31549428194c83918baf78fd269db67b0c02ec (diff) | |
download | display-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.cpp | 2 |
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; } } |