diff options
author | 2017-03-16 18:39:20 +0000 | |
---|---|---|
committer | 2017-03-16 18:39:20 +0000 | |
commit | f8b4ca51111cd2e566d1774ac464da859db78976 (patch) | |
tree | cfb9a4235b4a9a1dd35d5e203bc5fd918dd06403 /cmds/flatland/GLHelper.cpp | |
parent | 78491c9f694cb0767996503c629776a8eda950d7 (diff) |
Revert "Get rid of IGraphicBufferAlloc"
This reverts commit 78491c9f694cb0767996503c629776a8eda950d7.
Change-Id: I78d5c0a30ab80265f697f681387872b6763b2d1e
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 dfc3e581fd..5c04f6cf19 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); |