From 527747dce1ab4714bd424e5c1a25ebad3506c2cb Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 13 Mar 2017 20:38:48 +0000 Subject: Revert "get rid of IGraphicBufferAlloc" This reverts commit 1da94dfed674e94edc37cdc8ef68530520edf169. Bug: 36176799 Bug: 36175706 Change-Id: I6dd5fe8df564f0efa4392a800fb316e27a05076e --- cmds/flatland/GLHelper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmds/flatland/GLHelper.cpp') 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, EGLSurface* surface) { sp producer; sp consumer; - BufferQueue::createBufferQueue(&producer, &consumer); + BufferQueue::createBufferQueue(&producer, &consumer, mGraphicBufferAlloc); sp glc = new GLConsumer(consumer, name, GL_TEXTURE_EXTERNAL_OES, false, true); glc->setDefaultBufferSize(w, h); -- cgit v1.2.3-59-g8ed1b