summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc3.cpp
diff options
context:
space:
mode:
author Marissa Wall <marissaw@google.com> 2019-12-02 18:11:43 -0800
committer Marissa Wall <marissaw@google.com> 2019-12-09 11:48:16 -0800
commit22b2de1f4389befcd2eff9e894f53f872aa6f731 (patch)
treeb2da834599b9d7eb477e5ef03515366072ea6464 /libs/ui/Gralloc3.cpp
parent0d4bd95f746fe21e2a24b1e66d2215acc130e136 (diff)
gralloc: expose Gralloc4 get/dump functions
Expose Gralloc4 functions up to GraphicBufferAllocator/Mapper. By adding the functions to GraphicBufferAllocator/Mapper, the rest of the system can depend on GraphicBufferAllocator/Mapper instead of talking directly to IAllocator/IMapper. Bug: 141632767 Test: Implementation will be tested through VtsHalGraphicsMapperV4_0TargetTest Framework plumbing will be testing when it is exposed to GraphicBuffer Change-Id: Ie74a335a9d3a1e085e9fa186b327be8d21e870de
Diffstat (limited to 'libs/ui/Gralloc3.cpp')
-rw-r--r--libs/ui/Gralloc3.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ui/Gralloc3.cpp b/libs/ui/Gralloc3.cpp
index e189281c46..882674f479 100644
--- a/libs/ui/Gralloc3.cpp
+++ b/libs/ui/Gralloc3.cpp
@@ -352,7 +352,7 @@ bool Gralloc3Allocator::isLoaded() const {
return mAllocator != nullptr;
}
-std::string Gralloc3Allocator::dumpDebugInfo() const {
+std::string Gralloc3Allocator::dumpDebugInfo(bool /*less*/) const {
std::string debugInfo;
mAllocator->dumpDebugInfo([&](const auto& tmpDebugInfo) { debugInfo = tmpDebugInfo.c_str(); });
@@ -360,10 +360,10 @@ std::string Gralloc3Allocator::dumpDebugInfo() const {
return debugInfo;
}
-status_t Gralloc3Allocator::allocate(uint32_t width, uint32_t height, android::PixelFormat format,
- uint32_t layerCount, uint64_t usage, uint32_t bufferCount,
- uint32_t* outStride, buffer_handle_t* outBufferHandles,
- bool importBuffers) const {
+status_t Gralloc3Allocator::allocate(std::string /*requestorName*/, uint32_t width, uint32_t height,
+ android::PixelFormat format, uint32_t layerCount,
+ uint64_t usage, uint32_t bufferCount, uint32_t* outStride,
+ buffer_handle_t* outBufferHandles, bool importBuffers) const {
IMapper::BufferDescriptorInfo descriptorInfo;
sBufferDescriptorInfo(width, height, format, layerCount, usage, &descriptorInfo);