From 187f68db0dd9fdf369224de3875792b9bb0498c0 Mon Sep 17 00:00:00 2001 From: Marissa Wall Date: Thu, 20 Feb 2020 11:01:37 -0800 Subject: gralloc4: Support RAW plane type RAW12 and RAW16 buffers will have a PlaneLayoutComponentType of type RAW. Update getPlaneLayoutComponentTypeName to include the new type. Test: Gralloc4_test Bug: 149869426 Change-Id: Ib10b7d2c4dc3e7a68fc235391829ae7d6c6b2ea8 --- libs/gralloc/types/Gralloc4.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/gralloc/types/Gralloc4.cpp b/libs/gralloc/types/Gralloc4.cpp index 603e7e559f..53c68b7230 100644 --- a/libs/gralloc/types/Gralloc4.cpp +++ b/libs/gralloc/types/Gralloc4.cpp @@ -1317,6 +1317,8 @@ std::string getPlaneLayoutComponentTypeName(const ExtendableType& planeLayoutCom return "G"; case PlaneLayoutComponentType::B: return "B"; + case PlaneLayoutComponentType::RAW: + return "RAW"; case PlaneLayoutComponentType::A: return "A"; } -- cgit v1.2.3-59-g8ed1b