Lines Matching refs:buffers
31 // This test requires 3 buffers to avoid deadlock because we're
86 // This test requires 3 buffers to complete run on a single thread.
160 sp<GraphicBuffer> buffers[2];
183 buffers[i] = mST->getCurrentBuffer();
186 // Destroy the GL texture object to release its ref on buffers[2].
196 EXPECT_EQ(1, buffers[0]->getStrongCount());
201 EXPECT_EQ(3, buffers[1]->getStrongCount());
206 sp<GraphicBuffer> buffers[3];
230 buffers[i] = mST->getCurrentBuffer();
234 // on buffers[2].
237 // Destroy the GL texture object to release its ref on buffers[2].
246 EXPECT_EQ(1, buffers[1]->getStrongCount());
248 // Depending on how lazily the GL driver dequeues buffers, we may end up
249 // with either two or three total buffers. If there are three, each entry
250 // of the buffers array will be unique and there should only be one
254 if (buffers[2] != buffers[0]) {
255 EXPECT_EQ(1, buffers[0]->getStrongCount());
256 EXPECT_EQ(1, buffers[2]->getStrongCount());
258 EXPECT_EQ(2, buffers[0]->getStrongCount());
342 // This test requires 3 buffers to complete run on a single thread.
402 // This test requires 3 buffers to complete run on a single thread.
466 // This test requires 3 buffers to complete run on a single thread.