diff options
author | 2016-10-21 15:23:44 -0700 | |
---|---|---|
committer | 2016-11-11 11:35:06 -0800 | |
commit | 6ebc46a7c01b22bc19d3c00b493f8d930b15b43a (patch) | |
tree | 6f68e8f1cf2ccde71eece4a037c8e32b4f0cd0b2 /libs/ui/Gralloc1On0Adapter.cpp | |
parent | cd7dedbe69f8c90d351b97b1acea2bb3635b68ca (diff) |
Add layered buffer support to libui and libgui.
Bug: 31686534
Test: manual
Change-Id: Ia40270701467f4b785660324cad883e7da08989a
Diffstat (limited to 'libs/ui/Gralloc1On0Adapter.cpp')
-rw-r--r-- | libs/ui/Gralloc1On0Adapter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/Gralloc1On0Adapter.cpp b/libs/ui/Gralloc1On0Adapter.cpp index d5b88deb9a..111879aed1 100644 --- a/libs/ui/Gralloc1On0Adapter.cpp +++ b/libs/ui/Gralloc1On0Adapter.cpp @@ -97,6 +97,8 @@ gralloc1_function_pointer_t Gralloc1On0Adapter::doGetFunction( return asFP<GRALLOC1_PFN_SET_DIMENSIONS>(setDimensionsHook); case GRALLOC1_FUNCTION_SET_FORMAT: return asFP<GRALLOC1_PFN_SET_FORMAT>(setFormatHook); + case GRALLOC1_FUNCTION_SET_LAYER_COUNT: + return asFP<GRALLOC1_PFN_SET_LAYER_COUNT>(setLayerCountHook); case GRALLOC1_FUNCTION_SET_PRODUCER_USAGE: return asFP<GRALLOC1_PFN_SET_PRODUCER_USAGE>(setProducerUsageHook); case GRALLOC1_FUNCTION_GET_BACKING_STORE: @@ -113,6 +115,10 @@ gralloc1_function_pointer_t Gralloc1On0Adapter::doGetFunction( return asFP<GRALLOC1_PFN_GET_FORMAT>( bufferHook<decltype(&Buffer::getFormat), &Buffer::getFormat, int32_t*>); + case GRALLOC1_FUNCTION_GET_LAYER_COUNT: + return asFP<GRALLOC1_PFN_GET_LAYER_COUNT>( + bufferHook<decltype(&Buffer::getLayerCount), + &Buffer::getLayerCount, uint32_t*>); case GRALLOC1_FUNCTION_GET_PRODUCER_USAGE: return asFP<GRALLOC1_PFN_GET_PRODUCER_USAGE>(getProducerUsageHook); case GRALLOC1_FUNCTION_GET_STRIDE: |