Skip to content

Commit 261d42b

Browse files
AMouriAndroid (Google) Code Review
authored andcommitted
Merge "Add HDR ratios to snapshot dump" into main
2 parents ed652ae + a1045fa commit 261d42b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

services/surfaceflinger/FrontEnd/LayerSnapshot.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,14 @@ std::ostream& operator<<(std::ostream& out, const LayerSnapshot& obj) {
348348
if (obj.edgeExtensionEffect.hasEffect()) {
349349
out << obj.edgeExtensionEffect;
350350
}
351+
352+
if (obj.currentHdrSdrRatio > 1.f) {
353+
out << " currentHdrSdrRatio=" << obj.currentHdrSdrRatio;
354+
}
355+
356+
if (obj.desiredHdrSdrRatio > 1.f) {
357+
out << " desiredHdrSdrRatio=" << obj.desiredHdrSdrRatio;
358+
}
351359
return out;
352360
}
353361

0 commit comments

Comments
 (0)