diff options
author | Jeremy DeHaan <jdehaan@google.com> | 2022-05-18 18:59:34 +0000 |
---|---|---|
committer | Jeremy DeHaan <jdehaan@google.com> | 2022-05-18 18:59:34 +0000 |
commit | c4a2257560308f5cda437aaa4be79958e6e911c0 (patch) | |
tree | 74d72c473d3e0f1e4c739be88f15e3eda3428d05 /include | |
parent | 0f0831e18f11daadb85a073da0f2b64d54b84240 (diff) |
libhwc2.1: Add support for calibrated serial number
Update displaycolor.h to add support to get the calibrated panel serial
number.
Bug: 228113713
Change-Id: Ifec7fe35a152e48ae8e578095ea23e9b6745f18b
Diffstat (limited to 'include')
-rw-r--r-- | include/displaycolor/displaycolor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/displaycolor/displaycolor.h b/include/displaycolor/displaycolor.h index a5fbcc4..0856add 100644 --- a/include/displaycolor/displaycolor.h +++ b/include/displaycolor/displaycolor.h @@ -34,6 +34,7 @@ using android::hardware::graphics::common::V1_2::PixelFormat; /** * hwc/displaycolor interface history * + * 6.2.0.2022-05-18 Get calibrated serial number. * 6.1.0.2022-04-29 dim solid color layer * 6.0.0.2022-02-22 Get whether dimming in linear. * 5.0.0.2022-02-17 Add layer dim ratio. @@ -61,7 +62,7 @@ constexpr struct DisplayColorIntfVer { } kInterfaceVersion { 6, - 1, + 2, 0, }; @@ -409,6 +410,13 @@ class IDisplayColorGeneric { hwc::PixelFormat &pixel_format, hwc::Dataspace &dataspace, bool &dimming_linear) const = 0; + + /** + * @brief Get the serial number for the panel used during calibration. + * @param display to get the calibrated serial number. + * @return The calibrated serial number. + */ + virtual const std::string& GetCalibratedSerialNumber(DisplayType display) const = 0; }; extern "C" { |