diff options
| author | 2020-04-02 19:02:47 -0700 | |
|---|---|---|
| committer | 2020-04-02 20:23:10 -0700 | |
| commit | 1162e4703be6f1a9e2958be20171930b13a37874 (patch) | |
| tree | ad2270707666d172d06f0cbe520b233268d752a7 /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | edbc86de0530ebe4919ce9a84b221f4f32fd67e1 (diff) | |
SF: Fix color transform for composited virtual displays
ag/6455586 inadvertently changed the condition to never skip it.
Bug: 149968803
Test: Overlay display is not doubly sepia when Night Light is on.
Test: libcompositionengine_test
Change-Id: Ic33ba3069be8544ada1304461ab881b39b9fd1f9
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 2da92b3145..e419125048 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1199,7 +1199,7 @@ status_t SurfaceFlinger::getAutoLowLatencyModeSupport(const sp<IBinder>& display displayToken.get()); return NAME_NOT_FOUND; } - *outSupport = getHwComposer().hasDisplayCapability(displayId, + *outSupport = getHwComposer().hasDisplayCapability(*displayId, HWC2::DisplayCapability::AutoLowLatencyMode); return NO_ERROR; } @@ -1470,7 +1470,7 @@ status_t SurfaceFlinger::getDisplayBrightnessSupport(const sp<IBinder>& displayT return NAME_NOT_FOUND; } *outSupport = - getHwComposer().hasDisplayCapability(displayId, HWC2::DisplayCapability::Brightness); + getHwComposer().hasDisplayCapability(*displayId, HWC2::DisplayCapability::Brightness); return NO_ERROR; } |