Lines Matching full:buffers
842 // and GPU-read buffers.
1483 sp<GraphicBuffer> buffers[2];
1506 buffers[i] = mST->getCurrentBuffer();
1509 // Destroy the GL texture object to release its ref on buffers[2].
1519 EXPECT_EQ(1, buffers[0]->getStrongCount());
1524 EXPECT_EQ(2, buffers[1]->getStrongCount());
1528 sp<GraphicBuffer> buffers[3];
1552 buffers[i] = mST->getCurrentBuffer();
1556 // on buffers[2].
1559 // Destroy the GL texture object to release its ref on buffers[2].
1568 EXPECT_EQ(1, buffers[0]->getStrongCount());
1569 EXPECT_EQ(1, buffers[1]->getStrongCount());
1571 // Depending on how lazily the GL driver dequeues buffers, we may end up
1572 // with either two or three total buffers. If there are three, make sure
1574 if (buffers[2] != buffers[0]) {
1575 EXPECT_EQ(1, buffers[2]->getStrongCount());
1580 // This test requires 3 buffers to run on a single thread.
2077 // Consume the two pending buffers to unblock the producer thread.
2081 // Consume the remaining buffers from the producer thread.