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

Commit a1045faa authored by Alec Mouri's avatar Alec Mouri
Browse files

Add HDR ratios to snapshot dump

Bug: 403685641
Flag: EXEMPT logging only
Test: dumpsys SurfaceFlinger
Change-Id: Ia3e4b9055dd06097c706a97b1c46f64e30647e4b
parent 227bfac9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -336,6 +336,14 @@ std::ostream& operator<<(std::ostream& out, const LayerSnapshot& obj) {
    if (obj.edgeExtensionEffect.hasEffect()) {
        out << obj.edgeExtensionEffect;
    }

    if (obj.currentHdrSdrRatio > 1.f) {
        out << " currentHdrSdrRatio=" << obj.currentHdrSdrRatio;
    }

    if (obj.desiredHdrSdrRatio > 1.f) {
        out << " desiredHdrSdrRatio=" << obj.desiredHdrSdrRatio;
    }
    return out;
}