diff options
author | Alec Mouri <alecmouri@google.com> | 2022-02-07 12:43:59 -0800 |
---|---|---|
committer | Alec Mouri <alecmouri@google.com> | 2022-02-10 15:10:15 -0800 |
commit | 903aa17ace6abc11955e503b6d80118a92414e04 (patch) | |
tree | 9f4f03d3606320e9067ab00c994ecea82cdfb372 /hwc3/impl/HalImpl.cpp | |
parent | 0b21789279bc1d261e12523d42f0d59f6d3754b1 (diff) |
Change meaning of white point nits to mean a dimming ratio
SF now computes the desired dimming ratio itself, and sends it to HWC.
Bug: 217961164
Test: builds
Change-Id: Ifeb6f0e0a28404ad61b81d9e86375530997c5e54
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r-- | hwc3/impl/HalImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp index c999d50..240edff 100644 --- a/hwc3/impl/HalImpl.cpp +++ b/hwc3/impl/HalImpl.cpp @@ -875,11 +875,11 @@ int32_t HalImpl::setLayerVisibleRegion(int64_t display, int64_t layer, return halLayer->setLayerVisibleRegion(region); } -int32_t HalImpl::setLayerWhitePointNits(int64_t display, int64_t layer, float nits) { +int32_t HalImpl::setLayerBrightness(int64_t display, int64_t layer, float brightness) { ExynosLayer *halLayer; RET_IF_ERR(getHalLayer(display, layer, halLayer)); - return halLayer->setLayerWhitePointNits(nits); + return halLayer->setLayerBrightness(brightness); } int32_t HalImpl::setLayerZOrder(int64_t display, int64_t layer, uint32_t z) { |