diff options
author | 2016-01-11 23:40:44 +0000 | |
---|---|---|
committer | 2016-01-11 23:40:44 +0000 | |
commit | 70982a5f95f68295244e5f6cc037c193713a5259 (patch) | |
tree | 947a0ae7bb235772c5cb0f9b86e48221b3dac289 /cmds/flatland/GLHelper.cpp | |
parent | acd56150573d3a6d449c0de01f93c6f269d121e3 (diff) |
Revert "libgui: Remove custom BufferQueue allocators"
This reverts commit acd56150573d3a6d449c0de01f93c6f269d121e3.
Change-Id: I877f63a57fbddb4dcff71b3909b460ecc05981eb
Diffstat (limited to 'cmds/flatland/GLHelper.cpp')
-rw-r--r-- | cmds/flatland/GLHelper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/flatland/GLHelper.cpp b/cmds/flatland/GLHelper.cpp index 1a1c9a3027..ddf3aa8686 100644 --- a/cmds/flatland/GLHelper.cpp +++ b/cmds/flatland/GLHelper.cpp @@ -25,6 +25,7 @@ namespace android { GLHelper::GLHelper() : + mGraphicBufferAlloc(new GraphicBufferAlloc()), mDisplay(EGL_NO_DISPLAY), mContext(EGL_NO_CONTEXT), mDummySurface(EGL_NO_SURFACE), @@ -202,7 +203,7 @@ bool GLHelper::createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface) { sp<IGraphicBufferProducer> producer; sp<IGraphicBufferConsumer> consumer; - BufferQueue::createBufferQueue(&producer, &consumer); + BufferQueue::createBufferQueue(&producer, &consumer, mGraphicBufferAlloc); sp<GLConsumer> glc = new GLConsumer(consumer, name, GL_TEXTURE_EXTERNAL_OES, false, true); glc->setDefaultBufferSize(w, h); |