diff options
| author | 2022-01-06 12:57:12 -0800 | |
|---|---|---|
| committer | 2022-01-06 13:04:44 -0800 | |
| commit | 04511efdf0678d8c022313e34d0c71764495885f (patch) | |
| tree | da3ef5b665591711ff16e3be4a0194618ead073c /libs/ui/Gralloc4.cpp | |
| parent | 7ee3882228a741ec4194f0b0682a2e01de502db8 (diff) | |
Report gralloc4 buffer size in fixed fp notation
Scientific notation is a little harder to read.
Bug: None
Test: dumpsys SurfaceFlinger
Change-Id: Ic17052e57256aca64b6007f30b7dbfdcb09f3b65
Diffstat (limited to 'libs/ui/Gralloc4.cpp')
| -rw-r--r-- | libs/ui/Gralloc4.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ui/Gralloc4.cpp b/libs/ui/Gralloc4.cpp index 8ac08fb70d..3fc99bb3fc 100644 --- a/libs/ui/Gralloc4.cpp +++ b/libs/ui/Gralloc4.cpp @@ -941,9 +941,10 @@ status_t Gralloc4Mapper::bufferDumpHelper(const BufferDump& bufferDump, std::ost } double allocationSizeKiB = static_cast<double>(allocationSize) / 1024; - *outDump << "+ name:" << name << ", id:" << bufferId << ", size:" << allocationSizeKiB - << "KiB, w/h:" << width << "x" << height << ", usage: 0x" << std::hex << usage - << std::dec << ", req fmt:" << static_cast<int32_t>(pixelFormatRequested) + *outDump << "+ name:" << name << ", id:" << bufferId << ", size:" << std::fixed + << allocationSizeKiB << "KiB, w/h:" << width << "x" << height << ", usage: 0x" + << std::hex << usage << std::dec + << ", req fmt:" << static_cast<int32_t>(pixelFormatRequested) << ", fourcc/mod:" << pixelFormatFourCC << "/" << pixelFormatModifier << ", dataspace: 0x" << std::hex << static_cast<uint32_t>(dataspace) << std::dec << ", compressed: "; |