Skip to content

Commit a1045fa

Browse files
committed
Add HDR ratios to snapshot dump
Bug: 403685641 Flag: EXEMPT logging only Test: dumpsys SurfaceFlinger Change-Id: Ia3e4b9055dd06097c706a97b1c46f64e30647e4b
1 parent 227bfac commit a1045fa

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
@@ -336,6 +336,14 @@ std::ostream& operator<<(std::ostream& out, const LayerSnapshot& obj) {
336336
if (obj.edgeExtensionEffect.hasEffect()) {
337337
out << obj.edgeExtensionEffect;
338338
}
339+
340+
if (obj.currentHdrSdrRatio > 1.f) {
341+
out << " currentHdrSdrRatio=" << obj.currentHdrSdrRatio;
342+
}
343+
344+
if (obj.desiredHdrSdrRatio > 1.f) {
345+
out << " desiredHdrSdrRatio=" << obj.desiredHdrSdrRatio;
346+
}
339347
return out;
340348
}
341349

0 commit comments

Comments
 (0)