diff options
author | Dan Stoza <stoza@google.com> | 2014-03-12 12:18:37 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2014-03-12 16:13:06 -0700 |
commit | b278f5e70c001391779525fb4d3b024503ba9466 (patch) | |
tree | 79da000fcd746c20f554d590ee4cb06d0daa3f77 /cmds/screenrecord/FrameOutput.cpp | |
parent | 3a0fb34ed9fcb665e71cc055abde520af393c493 (diff) | |
download | frameworks_av-b278f5e70c001391779525fb4d3b024503ba9466.zip frameworks_av-b278f5e70c001391779525fb4d3b024503ba9466.tar.gz frameworks_av-b278f5e70c001391779525fb4d3b024503ba9466.tar.bz2 |
Remove deprecated BufferQueue constructor
Bug: 13415624
Change-Id: I7d98eb8e9201fd920552e7eab75da42a5e2c7dca
Diffstat (limited to 'cmds/screenrecord/FrameOutput.cpp')
-rw-r--r-- | cmds/screenrecord/FrameOutput.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/screenrecord/FrameOutput.cpp b/cmds/screenrecord/FrameOutput.cpp index b5cf2f9..06b1f70 100644 --- a/cmds/screenrecord/FrameOutput.cpp +++ b/cmds/screenrecord/FrameOutput.cpp @@ -67,8 +67,10 @@ status_t FrameOutput::createInputSurface(int width, int height, return UNKNOWN_ERROR; } - mBufferQueue = new BufferQueue(/*new GraphicBufferAlloc()*/); - mGlConsumer = new GLConsumer(mBufferQueue, mExtTextureName, + sp<IGraphicBufferProducer> producer; + sp<IGraphicBufferConsumer> consumer; + BufferQueue::createBufferQueue(&producer, &consumer); + mGlConsumer = new GLConsumer(consumer, mExtTextureName, GL_TEXTURE_EXTERNAL_OES); mGlConsumer->setName(String8("virtual display")); mGlConsumer->setDefaultBufferSize(width, height); @@ -79,7 +81,7 @@ status_t FrameOutput::createInputSurface(int width, int height, mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel]; - *pBufferProducer = mBufferQueue; + *pBufferProducer = producer; ALOGD("FrameOutput::createInputSurface OK"); return NO_ERROR; |