summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2020-03-09 14:01:06 -0700
committer Valerie Hau <vhau@google.com> 2020-03-09 21:54:10 +0000
commit2339279e6f955f38c73c4b39a972b17bbb34d4d3 (patch)
treec589d33981c9596eb3c7036b52ec3e3293ec481b
parent14f49cd4d3566751258de3b050c2aea181fea9fc (diff)
Set reserved size in Gralloc4 to 0
We are not using the reserved size at the moment. Set to zero Bug: 150908307 Test: build, boot, GraphicBuffer_test, GraphicBufferAllocator_test Change-Id: I673063671afcae91bd659279a34169848b89763a
-rw-r--r--libs/ui/Gralloc4.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ui/Gralloc4.cpp b/libs/ui/Gralloc4.cpp
index 6fd4b80f17..d8e40593e5 100644
--- a/libs/ui/Gralloc4.cpp
+++ b/libs/ui/Gralloc4.cpp
@@ -77,6 +77,7 @@ static inline void sBufferDescriptorInfo(std::string name, uint32_t width, uint3
outDescriptorInfo->layerCount = layerCount;
outDescriptorInfo->format = static_cast<hardware::graphics::common::V1_2::PixelFormat>(format);
outDescriptorInfo->usage = usage;
+ outDescriptorInfo->reservedSize = 0;
}
} // anonymous namespace