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

Commit 3b35cb77 authored by Dan Stoza's avatar Dan Stoza
Browse files

Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: I16e874c376d2f84d270f6a8c733618719cf49901
parent c51db0a6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -941,9 +941,11 @@ int main(int argc, char **argv) {
        } else {
            CHECK(useSurfaceTexAlloc);

            sp<BufferQueue> bq = new BufferQueue();
            sp<GLConsumer> texture = new GLConsumer(bq, 0 /* tex */);
            gSurface = new Surface(bq);
            sp<IGraphicBufferProducer> producer;
            sp<IGraphicBufferConsumer> consumer;
            BufferQueue::createBufferQueue(&producer, &consumer);
            sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */);
            gSurface = new Surface(producer);
        }

        CHECK_EQ((status_t)OK,