Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e258f09e authored by Sally Qi's avatar Sally Qi
Browse files

Fix brightness change during rotation when playing HDR videos.

- Update current luminance value with HDR displayBrightnessNits

Bug: 231915084
Test: screen rotates when playing HDR videos in adaptive mode
Change-Id: I6c0e69aec3b461d4c1a91efbf50d3a570394543b
parent 97c6f779
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6747,6 +6747,7 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl(
    clientCompositionDisplay.orientation = rotation;

    clientCompositionDisplay.outputDataspace = dataspace;
    clientCompositionDisplay.currentLuminanceNits = displayBrightnessNits;
    clientCompositionDisplay.maxLuminance = DisplayDevice::sDefaultMaxLumiance;
    clientCompositionDisplay.renderIntent =
            static_cast<aidl::android::hardware::graphics::composer3::RenderIntent>(renderIntent);