From 706933754bd7087c30d8c583a786ff46bd314e19 Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Wed, 27 May 2020 16:02:33 +0800 Subject: [PATCH] gralloc4: Support RAW type in PlaneLayoutComponentType The patch creates RAW type in PlaneLayoutComponentType to make list complete. Bug: b/157534008 Test: VtsHalGraphicsMapperV4_0TargetTest Change-Id: I871f90756eafb848cf7489b9710f4df47f8f8ec2 --- libs/gralloc/types/include/gralloctypes/Gralloc4.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/gralloc/types/include/gralloctypes/Gralloc4.h b/libs/gralloc/types/include/gralloctypes/Gralloc4.h index 8d12754d79..1a7c2c946a 100644 --- a/libs/gralloc/types/include/gralloctypes/Gralloc4.h +++ b/libs/gralloc/types/include/gralloctypes/Gralloc4.h @@ -431,6 +431,12 @@ static const aidl::android::hardware::graphics::common::ExtendableType PlaneLayo static_cast( aidl::android::hardware::graphics::common::PlaneLayoutComponentType::A)}; +static const aidl::android::hardware::graphics::common::ExtendableType + PlaneLayoutComponentType_RAW = + {GRALLOC4_STANDARD_PLANE_LAYOUT_COMPONENT_TYPE, + static_cast( + aidl::android::hardware::graphics::common::PlaneLayoutComponentType::RAW)}; + /*---------------------------------------------------------------------------------------------*/ /**