summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorYichi Chen <yichichen@google.com>2022-01-27 22:53:31 +0800
committerYichi Chen <yichichen@google.com>2022-02-08 20:12:51 +0800
commite7f859b6f0d94239e582b1a040d354b513db5d0f (patch)
tree7ddeb7cf9213e6c59ce7298d40df548267afc6e9 /hwc3/impl/HalImpl.cpp
parenteb711fd77622753839047b6d6675214c03ef4828 (diff)
hwc: correct the functionality of getDisplayCapabilities
Since BRIGHTNESS and DOZE have been included in getDisplayCapabilities, we don't need to call the original support function individually. Bug: 216118058 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I85932e9d050813c9d2b89bef5783900fbd4c88f9
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index c94545f..c999d50 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -907,7 +907,7 @@ int32_t HalImpl::setOutputBuffer(int64_t display, buffer_handle_t buffer,
}
int32_t HalImpl::setPowerMode(int64_t display, PowerMode mode) {
- if (mode == PowerMode::ON_SUSPEND) {
+ if (mode == PowerMode::ON_SUSPEND || mode == PowerMode::DOZE_SUSPEND) {
return HWC2_ERROR_UNSUPPORTED;
}