summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLong Ling <longling@google.com>2021-04-30 13:38:29 -0700
committerLong Ling <longling@google.com>2021-05-11 09:31:50 -0700
commita7c24366800c8d6e157c6ded7f2ee2fc1aa90327 (patch)
tree090fe36d9d7a6e7699d8036842d6db122c2e73b1 /include
parent5d18499a99fa923efefebd35c1df46b696866c13 (diff)
libhwc2.1: enable LHBM compensation
Enable LHBM mipi/frame sync to compensate the luminance difference Bug: 184096624 Change-Id: Ic84ca018933f042692e656a73632db56bc2968a6
Diffstat (limited to 'include')
-rw-r--r--include/displaycolor/displaycolor.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/displaycolor/displaycolor.h b/include/displaycolor/displaycolor.h
index 076619c..e8020f3 100644
--- a/include/displaycolor/displaycolor.h
+++ b/include/displaycolor/displaycolor.h
@@ -175,7 +175,9 @@ struct DisplayScene {
render_intent == rhs.render_intent &&
matrix == rhs.matrix &&
force_hdr == rhs.force_hdr &&
- bm == rhs.bm;
+ bm == rhs.bm &&
+ lhbm_on == rhs.lhbm_on &&
+ (lhbm_on && dbv == rhs.dbv);
}
/// A vector of layer color data.
@@ -201,6 +203,12 @@ struct DisplayScene {
/// display brightness mode
BrightnessMode bm;
+
+ /// dbv level
+ uint32_t dbv;
+
+ /// lhbm status
+ bool lhbm_on;
};
/// An interface specifying functions that are HW-agnostic.
@@ -226,6 +234,15 @@ class IDisplayColorGeneric {
const ConfigType *config = nullptr;
};
+ /// Interface for accessing data for panel
+ class IPanel {
+ public:
+ /// Get the adjusted dbv for panel.
+ virtual uint32_t GetAdjustedBrightnessLevel() const = 0;
+
+ virtual ~IPanel() {}
+ };
+
virtual ~IDisplayColorGeneric() {}
/**