From 6ebc46a7c01b22bc19d3c00b493f8d930b15b43a Mon Sep 17 00:00:00 2001 From: Craig Donner Date: Fri, 21 Oct 2016 15:23:44 -0700 Subject: Add layered buffer support to libui and libgui. Bug: 31686534 Test: manual Change-Id: Ia40270701467f4b785660324cad883e7da08989a --- libs/ui/Gralloc1On0Adapter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ui/Gralloc1On0Adapter.cpp') 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(setDimensionsHook); case GRALLOC1_FUNCTION_SET_FORMAT: return asFP(setFormatHook); + case GRALLOC1_FUNCTION_SET_LAYER_COUNT: + return asFP(setLayerCountHook); case GRALLOC1_FUNCTION_SET_PRODUCER_USAGE: return asFP(setProducerUsageHook); case GRALLOC1_FUNCTION_GET_BACKING_STORE: @@ -113,6 +115,10 @@ gralloc1_function_pointer_t Gralloc1On0Adapter::doGetFunction( return asFP( bufferHook); + case GRALLOC1_FUNCTION_GET_LAYER_COUNT: + return asFP( + bufferHook); case GRALLOC1_FUNCTION_GET_PRODUCER_USAGE: return asFP(getProducerUsageHook); case GRALLOC1_FUNCTION_GET_STRIDE: -- cgit v1.2.3-59-g8ed1b