Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: I2a7cea5806869bcd6aeaeee7dee97d80f819c9aa
This commit is contained in:
Dan Stoza
2014-03-12 16:52:39 -07:00
parent 141d889166
commit 526f21b2c6

View File

@@ -162,9 +162,11 @@ bool GLEnv::InitWithNewContext() {
}
// Create dummy surface using a GLConsumer
sp<BufferQueue> bq = new BufferQueue();
surfaceTexture_ = new GLConsumer(bq, 0);
window_ = new Surface(static_cast<sp<IGraphicBufferProducer> >(bq));
sp<IGraphicBufferProducer> producer;
sp<IGraphicBufferConsumer> consumer;
BufferQueue::createBufferQueue(&producer, &consumer);
surfaceTexture_ = new GLConsumer(consumer, 0);
window_ = new Surface(producer);
surfaces_[0] = SurfaceWindowPair(eglCreateWindowSurface(display(), config, window_.get(), NULL), NULL);
if (CheckEGLError("eglCreateWindowSurface")) return false;