summaryrefslogtreecommitdiff
path: root/libs/hwui/Tonemapper.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-04-27 00:11:43 +0000
committer Alec Mouri <alecmouri@google.com> 2023-05-01 19:59:46 +0000
commit262b42bb0eb064a7ebc4453d9fc96b9a327e8805 (patch)
tree1f23532c7fa97f718376d57957b1d42282fa2ff4 /libs/hwui/Tonemapper.cpp
parent164df0b0fd64ca2838b4301051e2e1359a801698 (diff)
Make TextureView's HDR definitions the same as ColorSpace's
Also make ColorBitmapActivity better in HwAccelerationTest for verifying tonemapping behavior. Bug: 278121691 Bug: 278122024 Test: HwAccelerationTest Change-Id: I868fa79b44f63877625bcd9e685ba8f318b7329a
Diffstat (limited to 'libs/hwui/Tonemapper.cpp')
-rw-r--r--libs/hwui/Tonemapper.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/hwui/Tonemapper.cpp b/libs/hwui/Tonemapper.cpp
index 0d39f0e33298..974a5d05aa84 100644
--- a/libs/hwui/Tonemapper.cpp
+++ b/libs/hwui/Tonemapper.cpp
@@ -97,7 +97,6 @@ void tonemapPaint(const SkImageInfo& source, const SkImageInfo& destination, flo
.inputDataspace = sourceDataspace,
.outputDataspace = destinationDataspace,
.undoPremultipliedAlpha = source.alphaType() == kPremul_SkAlphaType,
- .fakeInputDataspace = destinationDataspace,
.type = shaders::LinearEffect::SkSLType::ColorFilter};
constexpr float kMaxDisplayBrightnessNits = 1000.f;
constexpr float kCurrentDisplayBrightnessNits = 500.f;