diff options
author | 2017-02-02 12:13:34 -0800 | |
---|---|---|
committer | 2017-02-03 14:21:36 -0800 | |
commit | e96a325aff9da4e02abeb7b9178592583cf3b78c (patch) | |
tree | b93ba6ca1f80ef765d9579a7e69d0336a12abd62 /libs/gui/GraphicBufferAlloc.cpp | |
parent | bd448543439eb0f337191897bc3305eb8be0adda (diff) |
Add methods for allocating and locking GraphicBuffers via gralloc1 flags
Bug: 34050596
Test: manual
Change-Id: I9515e60fe6b67d2c6f02b1bb78651669430f12ef
Diffstat (limited to 'libs/gui/GraphicBufferAlloc.cpp')
-rw-r--r-- | libs/gui/GraphicBufferAlloc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<GraphicBuffer> 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> graphicBuffer(new GraphicBuffer( - width, height, format, layerCount, usage, + width, height, format, layerCount, producerUsage, consumerUsage, std::move(requestorName))); status_t err = graphicBuffer->initCheck(); *error = err; |