• Home
  • Raw
  • Download

Lines Matching refs:mFb

92             mFb = FrameBuffer::getFB();  in SetUp()
93 EXPECT_NE(nullptr, mFb); in SetUp()
95 mFb->setupSubWindow( in SetUp()
108 mFb = FrameBuffer::getFB(); in SetUp()
109 ASSERT_NE(nullptr, mFb); in SetUp()
126 mFb = nullptr; in TearDown()
138 mFb->onSave(m_stream.get(), m_texture_saver); in saveSnapshot()
146 mFb->bindContext(0, 0, 0); in loadSnapshot()
153 mFb->onLoad(m_stream.get(), m_texture_loader); in loadSnapshot()
160 FrameBuffer* mFb = nullptr; member in gfxstream::__anon4f14abc00111::FrameBufferTest
182 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
190 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
192 mFb->closeColorBuffer(handle); in TEST_F()
198 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
200 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
201 mFb->closeColorBuffer(handle); in TEST_F()
208 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
210 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
213mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
216 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
220 mFb->closeColorBuffer(handle); in TEST_F()
224 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
227 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
230 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
235 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
241 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
247 mFb->closeColorBuffer(handle); in TEST_F()
251 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
254 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
257 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
262 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
268 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
274 mFb->closeColorBuffer(handle); in TEST_F()
281 HandleType handle_nv12 = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
284 EXPECT_EQ(0, mFb->openColorBuffer(handle_nv12)); in TEST_F()
301 mFb->updateColorBuffer(handle_nv12, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
305 HandleType handle_yuv420 = mFb->createColorBuffer( in TEST_F()
308 EXPECT_EQ(0, mFb->openColorBuffer(handle_yuv420)); in TEST_F()
312 mFb->swapTexturesAndUpdateColorBuffer(handle_nv12, 0, 0, mWidth, mHeight, in TEST_F()
315 mFb->swapTexturesAndUpdateColorBuffer(handle_yuv420, 0, 0, mWidth, mHeight, in TEST_F()
321 mFb->readColorBufferYUV(handle_yuv420, 0, 0, mWidth, mHeight, forRead, in TEST_F()
327 mFb->closeColorBuffer(handle_nv12); in TEST_F()
328 mFb->closeColorBuffer(handle_yuv420); in TEST_F()
333 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
336 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
339 mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, in TEST_F()
344 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
350 mFb->readColorBufferYUV(handle, 0, 0, mWidth, mHeight, forRead.data(), in TEST_F()
356 mFb->closeColorBuffer(handle); in TEST_F()
364 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
366 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
369mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
372 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
377 mFb->closeColorBuffer(handle); in TEST_F()
382 const EmulatedEglConfigList* configs = mFb->getConfigs(); in TEST_F()
388 HandleType handle = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
394 HandleType handle = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
400 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
401 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
402 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
416 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
417 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
418 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
420 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
421 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
434 mFb->flushEmulatedEglWindowSurfaceColorBuffer(surface); in TEST_F()
444 mFb->readColorBuffer( in TEST_F()
454 mFb->post(colorBuffer); in TEST_F()
459 EXPECT_TRUE(mFb->bindContext(0, 0, 0)); in TEST_F()
460 mFb->closeColorBuffer(colorBuffer); in TEST_F()
461 mFb->closeColorBuffer(colorBuffer); in TEST_F()
462 mFb->destroyEmulatedEglWindowSurface(surface); in TEST_F()
475 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
476 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
477 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
491 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
501 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
504mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
510 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
514 mFb->closeColorBuffer(handle); in TEST_F()
523 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
529mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
532 mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
536 mFb->closeColorBuffer(handle); in TEST_F()
542 HandleType handle = mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, in TEST_F()
545 EXPECT_TRUE(mFb->isFastBlitSupported()); in TEST_F()
547 mFb->lock(); in TEST_F()
548 EXPECT_EQ(mFb->isFastBlitSupported(), mFb->findColorBuffer(handle)->glOpIsFastBlitSupported()); in TEST_F()
549 mFb->unlock(); in TEST_F()
554 mFb->lock(); in TEST_F()
555 EXPECT_EQ(mFb->isFastBlitSupported(), mFb->findColorBuffer(handle)->glOpIsFastBlitSupported()); in TEST_F()
556 mFb->unlock(); in TEST_F()
558 mFb->closeColorBuffer(handle); in TEST_F()
566 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
567 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
568 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
570 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
571 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
681 EXPECT_TRUE(mFb->bindContext(0, 0, 0)); in TEST_F()
682 mFb->closeColorBuffer(colorBuffer); in TEST_F()
683 mFb->closeColorBuffer(colorBuffer); in TEST_F()
684 mFb->destroyEmulatedEglWindowSurface(surface); in TEST_F()
690 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
691 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
692 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
694 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
695 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
718 EXPECT_TRUE(mFb->bindContext(0, 0, 0)); in TEST_F()
719 mFb->closeColorBuffer(colorBuffer); in TEST_F()
720 mFb->closeColorBuffer(colorBuffer); in TEST_F()
721 mFb->destroyEmulatedEglWindowSurface(surface); in TEST_F()
740 mFb->createColorBuffer(mWidth, mHeight, GL_BGRA_EXT, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
749 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
751 EXPECT_EQ(0, mFb->openColorBuffer(handle)); in TEST_F()
754mFb->updateColorBuffer(handle, 0, 0, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
758mFb->readColorBuffer(handle, 0, 0, mWidth, mHeight, GL_BGRA_EXT, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
780 mFb->closeColorBuffer(handle); in TEST_F()
785 mFb->createDisplay(&id); in TEST_F()
786 EXPECT_EQ(0, mFb->createDisplay(&id)); in TEST_F()
787 EXPECT_EQ(0, mFb->destroyDisplay(id)); in TEST_F()
792 EXPECT_EQ(0, mFb->createDisplay(&id)); in TEST_F()
794 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
796 EXPECT_EQ(0, mFb->setDisplayColorBuffer(id, handle)); in TEST_F()
798 mFb->getDisplayColorBuffer(id, &getHandle); in TEST_F()
801 mFb->getColorBufferDisplay(handle, &getId); in TEST_F()
803 mFb->closeColorBuffer(handle); in TEST_F()
804 EXPECT_EQ(0, mFb->destroyDisplay(id)); in TEST_F()
809 mFb->createDisplay(&id); in TEST_F()
812 EXPECT_EQ(0, mFb->setDisplayPose(id, -1, -1, w, h)); in TEST_F()
815 EXPECT_EQ(0, mFb->getDisplayPose(id, &x, &y, &width, &height)); in TEST_F()
818 EXPECT_EQ(0, mFb->destroyDisplay(id)); in TEST_F()
824 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
825 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
826 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
829 mFb->createColorBuffer(mWidth/2, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
831 EXPECT_EQ(0, mFb->openColorBuffer(cb0)); in TEST_F()
832mFb->updateColorBuffer(cb0, 0, 0, mWidth/2, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate0.data()); in TEST_F()
835 mFb->createColorBuffer(mWidth/2, mHeight/2, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
836 EXPECT_EQ(0, mFb->openColorBuffer(cb1)); in TEST_F()
838mFb->updateColorBuffer(cb1, 0, 0, mWidth/2, mHeight/2, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate1.data(… in TEST_F()
841 mFb->createColorBuffer(mWidth/4, mHeight/2, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
842 EXPECT_EQ(0, mFb->openColorBuffer(cb2)); in TEST_F()
844mFb->updateColorBuffer(cb2, 0, 0, mWidth/4, mHeight/2, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate2.data(… in TEST_F()
847 mFb->createColorBuffer(mWidth/4, mHeight/4, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
848 EXPECT_EQ(0, mFb->openColorBuffer(cb3)); in TEST_F()
850mFb->updateColorBuffer(cb3, 0, 0, mWidth/4, mHeight/4, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate3.data(… in TEST_F()
859 EXPECT_EQ(0, mFb->createDisplay(&ids[i])); in TEST_F()
860 EXPECT_EQ(0, mFb->setDisplayPose(ids[i], info[i].pos_x, info[i].pos_y, in TEST_F()
862 EXPECT_EQ(0, mFb->setDisplayColorBuffer(ids[i], info[i].cb)); in TEST_F()
866 mFb->post(cb0); in TEST_F()
870 EXPECT_TRUE(mFb->bindContext(0, 0, 0)); in TEST_F()
871 mFb->closeColorBuffer(cb0); in TEST_F()
872 mFb->closeColorBuffer(cb1); in TEST_F()
873 mFb->closeColorBuffer(cb2); in TEST_F()
874 mFb->closeColorBuffer(cb3); in TEST_F()
875 mFb->destroyDisplay(ids[0]); in TEST_F()
876 mFb->destroyDisplay(ids[1]); in TEST_F()
877 mFb->destroyDisplay(ids[2]); in TEST_F()
878 mFb->destroyEmulatedEglWindowSurface(surface); in TEST_F()
901 mFb->createColorBuffer(kWidth, kHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
903 EXPECT_EQ(0, mFb->openColorBuffer(cb)); in TEST_F()
904 mFb->updateColorBuffer(cb, 0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, forUpdate.data()); in TEST_F()
906 …EXPECT_TRUE(mFb->platformImportResource(cb, RESOURCE_TYPE_EGL_NATIVE_PIXMAP|RESOURCE_USE_PRESERVE,… in TEST_F()
909 mFb->readColorBuffer(cb, 0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, forRead.data()); in TEST_F()
913 mFb->closeColorBuffer(cb); in TEST_F()
935 mFb->createColorBuffer(mWidth, mHeight, GL_RGBA, FRAMEWORK_FORMAT_GL_COMPATIBLE); in TEST_F()
937 EXPECT_TRUE(mFb->platformImportResource(colorBuffer, RESOURCE_TYPE_EGL_NATIVE_PIXMAP, pixmap)); in TEST_F()
939 HandleType context = mFb->createEmulatedEglContext(0, 0, GLESApi_3_0); in TEST_F()
940 HandleType surface = mFb->createEmulatedEglWindowSurface(0, mWidth, mHeight); in TEST_F()
942 EXPECT_TRUE(mFb->bindContext(context, surface, surface)); in TEST_F()
943 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
956 mFb->flushEmulatedEglWindowSurfaceColorBuffer(surface); in TEST_F()
966 mFb->readColorBuffer( in TEST_F()
976 mFb->post(colorBuffer); in TEST_F()
981 EXPECT_TRUE(mFb->bindContext(0, 0, 0)); in TEST_F()
982 mFb->closeColorBuffer(colorBuffer); in TEST_F()
983 mFb->closeColorBuffer(colorBuffer); in TEST_F()
984 mFb->destroyEmulatedEglWindowSurface(surface); in TEST_F()