diff options
| author | 2024-04-11 20:10:34 +0000 | |
|---|---|---|
| committer | 2024-05-03 18:17:16 +0000 | |
| commit | 1ec2d9a02a3c4e6baf9628ad4bfa90acbd4c981c (patch) | |
| tree | 22ef867c9cadca2a3ba37e464265efb74076013b /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | f55e4459f4e0de68700b9c6c9150734497d6b4a9 (diff) | |
Add color correction level API to native
Test: Locally tested with other cls of the same topic, and also added unit tests and ran 'atest SurfaceFlinger_test'
Bug: 322829049
Change-Id: I494ce39608ddf84fb74b60291511477672ca4e36
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index c237a7da3e..70b9e4361d 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -7154,6 +7154,7 @@ status_t SurfaceFlinger::onTransact(uint32_t code, const Parcel& data, Parcel* r Mutex::Autolock _l(mStateLock); // daltonize n = data.readInt32(); + mDaltonizer.setLevel(data.readInt32()); switch (n % 10) { case 1: mDaltonizer.setType(ColorBlindnessType::Protanomaly); |