From e96a325aff9da4e02abeb7b9178592583cf3b78c Mon Sep 17 00:00:00 2001 From: Craig Donner Date: Thu, 2 Feb 2017 12:13:34 -0800 Subject: Add methods for allocating and locking GraphicBuffers via gralloc1 flags Bug: 34050596 Test: manual Change-Id: I9515e60fe6b67d2c6f02b1bb78651669430f12ef --- libs/gui/GraphicBufferAlloc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/gui/GraphicBufferAlloc.cpp') diff --git a/libs/gui/GraphicBufferAlloc.cpp b/libs/gui/GraphicBufferAlloc.cpp index 30f5e53520..f2d367711a 100644 --- a/libs/gui/GraphicBufferAlloc.cpp +++ b/libs/gui/GraphicBufferAlloc.cpp @@ -33,9 +33,10 @@ GraphicBufferAlloc::~GraphicBufferAlloc() { sp GraphicBufferAlloc::createGraphicBuffer(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, - uint32_t usage, std::string requestorName, status_t* error) { + uint64_t producerUsage, uint64_t consumerUsage, + std::string requestorName, status_t* error) { sp graphicBuffer(new GraphicBuffer( - width, height, format, layerCount, usage, + width, height, format, layerCount, producerUsage, consumerUsage, std::move(requestorName))); status_t err = graphicBuffer->initCheck(); *error = err; -- cgit v1.2.3-59-g8ed1b