summaryrefslogtreecommitdiff
path: root/libs/ui/GraphicBufferMapper.cpp
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2019-02-01 09:54:20 -0800
committer Valerie Hau <vhau@google.com> 2019-02-04 16:47:19 -0800
commitddbfaeb7a6b67e93f7a2519c7725561de644d671 (patch)
tree0161fdf35ad94bd2f4ee25fb25b48eee6067c4d9 /libs/ui/GraphicBufferMapper.cpp
parent3b7f2022cd288f9bfcb2ba8f775eef6caca92dad (diff)
Adding isSupported HIDL Mapper function support to framework
Bug: 123423521 Test: build, boot, manual testing Change-Id: Iee52de6f5610a8465b1f4435d02dc61a8064064a
Diffstat (limited to 'libs/ui/GraphicBufferMapper.cpp')
-rw-r--r--libs/ui/GraphicBufferMapper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ui/GraphicBufferMapper.cpp b/libs/ui/GraphicBufferMapper.cpp
index 79c333fce4..06981c39a5 100644
--- a/libs/ui/GraphicBufferMapper.cpp
+++ b/libs/ui/GraphicBufferMapper.cpp
@@ -161,5 +161,10 @@ status_t GraphicBufferMapper::unlockAsync(buffer_handle_t handle, int *fenceFd)
return NO_ERROR;
}
+status_t GraphicBufferMapper::isSupported(uint32_t width, uint32_t height,
+ android::PixelFormat format, uint32_t layerCount,
+ uint64_t usage, bool* outSupported) {
+ return mMapper->isSupported(width, height, format, layerCount, usage, outSupported);
+}
// ---------------------------------------------------------------------------
}; // namespace android