summaryrefslogtreecommitdiff
path: root/libs/ui/HdrCapabilities.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2018-04-25 14:34:31 -0700
committer Peiyong Lin <lpy@google.com> 2018-05-02 10:56:11 -0700
commitfb069305e90947aeb76b72527f23aa24564f3c87 (patch)
tree45a22b91bce96a44053931f0396ae81f6b6fc3ce /libs/ui/HdrCapabilities.cpp
parentaf0c783042eb89b58abb28bda87e4dd298af725f (diff)
[SurfaceFlinger] Adapt min/max luminance from hardware composer.
The luminance capability of the display is very important to HDR content. Previously, the minimum and maximum luminance were assumed as 0.0 and 500.0 respectively. This patch adapts the value returned from hardware composer and plumbs the value to RenderEngine. If hardware composer doesn't return valid values, 0.0 and 500.0 are still used as minimum and maximum luminance respectively. BUG: 73825729 BUG: 78574325 Test: Build, flash, watch video. Change-Id: Ie1dc93f5cca7068580d6ae19da43346491196d7c
Diffstat (limited to 'libs/ui/HdrCapabilities.cpp')
-rw-r--r--libs/ui/HdrCapabilities.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/ui/HdrCapabilities.cpp b/libs/ui/HdrCapabilities.cpp
index 50f9bf13fd..a36911d1cf 100644
--- a/libs/ui/HdrCapabilities.cpp
+++ b/libs/ui/HdrCapabilities.cpp
@@ -27,7 +27,6 @@ HdrCapabilities::~HdrCapabilities() = default;
HdrCapabilities::HdrCapabilities(HdrCapabilities&& other) = default;
HdrCapabilities& HdrCapabilities::operator=(HdrCapabilities&& other) = default;
-
size_t HdrCapabilities::getFlattenedSize() const {
return sizeof(mMaxLuminance) +
sizeof(mMaxAverageLuminance) +