From f0058ca0e592485ac9e5a4aedb0dd8fa187625ef Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 20 May 2014 13:28:50 -0700 Subject: [PATCH] Add IMPLEMENTATION_DEFINED to dump The "dumpsys SurfaceFlinger" output shows pixel formats in human-readable form now. Add IMPLEMENTATION_DEFINED. Change-Id: If567e34dad4b940fbfb4d0b70c65f6ab8cd5f5e7 --- services/surfaceflinger/DisplayHardware/HWComposer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index 51c70594c..c3b215940 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp @@ -1058,6 +1058,8 @@ static String8 getFormatStr(PixelFormat format) { case PIXEL_FORMAT_BGRA_8888: return String8("BGRA_8888"); case PIXEL_FORMAT_sRGB_A_8888: return String8("sRGB_A_8888"); case PIXEL_FORMAT_sRGB_X_8888: return String8("sRGB_x_8888"); + case HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED: + return String8("ImplDef"); default: String8 result; result.appendFormat("? %08x", format);