diff options
author | Ken Huang <kenbshuang@google.com> | 2020-11-18 22:37:23 +0800 |
---|---|---|
committer | Ken Huang <kenbshuang@google.com> | 2020-11-25 22:01:49 +0800 |
commit | eb5fe291771e77c6041c301866d950f9c348ee0e (patch) | |
tree | deadad01d5338c576615910350d0be6c4bf3250c /libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h | |
parent | 5fc4b8e1c67a3b823312b700c17db3596b492ec9 (diff) |
libhwc2.1: Support DOZE mode
Modify power mode transition to support low power mode which is
exposed by display driver via lp_mode connector property.
Bug: 148312197
Test: suspend/resume/AoD for 50 cycles
Change-Id: Idd5ce0d231716e17a044aa4c4fe7fd617db2753c
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h')
-rw-r--r-- | libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h b/libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h index 420ea9f..ee63065 100644 --- a/libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h +++ b/libhwc2.1/libdisplayinterface/ExynosDisplayInterface.h @@ -33,6 +33,8 @@ class ExynosDisplayInterface { virtual ~ExynosDisplayInterface(); virtual void init(ExynosDisplay* __unused exynosDisplay) {}; virtual int32_t setPowerMode(int32_t __unused mode) {return NO_ERROR;}; + virtual int32_t setLowPowerMode() { return HWC2_ERROR_UNSUPPORTED; }; + virtual bool isDozeModeAvailable() const { return false; }; virtual int32_t setVsyncEnabled(uint32_t __unused enabled) {return NO_ERROR;}; virtual int32_t getDisplayAttribute( hwc2_config_t __unused config, |