Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 526f21b2 authored by Dan Stoza's avatar Dan Stoza
Browse files

Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: I2a7cea5806869bcd6aeaeee7dee97d80f819c9aa
parent 141d8891
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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;