diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-01-31 00:09:28 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-01-31 00:09:28 -0800 |
commit | 2ba93bc63840d23eeb9a81007e2c3738ed316b12 (patch) | |
tree | b1d1c1f245372ba114cfd3f0a31fd2bf86c16292 | |
parent | 4ceb3084ea44adadb9a08b9ef4728982ee98f176 (diff) | |
parent | e12efe70b07a8330eb48b78415e1abcc403885ef (diff) |
Merge e12efe70b07a8330eb48b78415e1abcc403885ef on remote branch
Change-Id: I86ac5e4e575963c2b1d5f26849aae282ec99bca9
-rw-r--r-- | include/composer_extn_intf.h | 5 | ||||
-rw-r--r-- | include/smomo_interface.h | 23 |
2 files changed, 25 insertions, 3 deletions
diff --git a/include/composer_extn_intf.h b/include/composer_extn_intf.h index e93087d1..688863dc 100644 --- a/include/composer_extn_intf.h +++ b/include/composer_extn_intf.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2019-2022, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -51,7 +51,8 @@ class ComposerExtnIntf { virtual void DestroyDisplayExtn(DisplayExtnIntf *intf) = 0; virtual int CreatePhaseOffsetExtn(PhaseOffsetExtnIntf **intf) = 0; virtual void DestroyPhaseOffsetExtn(PhaseOffsetExtnIntf *intf) = 0; - virtual bool CreateSmomoExtn(smomo::SmomoIntf **intf) = 0; + virtual bool CreateSmomoExtn(smomo::SmomoIntf **intf, + smomo::DisplayInfo info = {0, smomo::kBuiltin, true}) = 0; virtual void DestroySmomoExtn(smomo::SmomoIntf *intf) = 0; protected: virtual ~ComposerExtnIntf() { } diff --git a/include/smomo_interface.h b/include/smomo_interface.h index 16e56681..6d728574 100644 --- a/include/smomo_interface.h +++ b/include/smomo_interface.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2019, 2021, The Linux Foundation. All rights reserved. +* Copyright (c) 2019, 2021-2022 The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: @@ -74,6 +74,17 @@ struct SmomoBufferStats { int64_t key; // buffer identity }; +enum DisplayType { + kBuiltin, + kPluggable, +}; + +struct DisplayInfo { + int32_t display_id; + DisplayType type; + bool is_primary; +}; + /*! @brief SmoMo interface implemented by SmoMo library. @details This class declares prototype for SmoMo public interfaces which must be @@ -227,6 +238,16 @@ class SmomoIntf { @return \link bool \endlink */ virtual bool LowLatencyMode() = 0; + + /*! @brief Enable/Disable Refresh Rate change. + + @details This function is called by SmoMo clients used to control + refresh rate change. + + @return \link void \endlink + */ + virtual void SetRefreshRateChangeStatus(bool enable) = 0; + }; typedef bool (*CreateSmomoInterface)(uint16_t version, SmomoIntf **interface); |