summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/composer_extn_intf.h5
-rw-r--r--include/smomo_interface.h23
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);