Lines Matching refs:fb
278 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetEGLVersion() local
279 if (!fb) { in rcGetEGLVersion()
282 fb->getEmulationGl().getEglVersion(major, minor); in rcGetEGLVersion()
289 FrameBuffer *fb = FrameBuffer::getFB(); in rcQueryEGLString() local
290 if (!fb) { in rcQueryEGLString()
294 const char* str = gl::s_egl.eglQueryString(fb->getDisplay(), name); in rcQueryEGLString()
300 if ((fb->getMaxGLESVersion() >= GLES_DISPATCH_MAX_VERSION_3_0) && in rcQueryEGLString()
301 fb->getFeatures().GlesDynamicVersion.enabled && in rcQueryEGLString()
452 FrameBuffer* fb = FrameBuffer::getFB(); in rcGetGLString() local
454 const gfxstream::host::FeatureSet& features = fb->getFeatures(); in rcGetGLString()
459 GLESDispatchMaxVersion maxVersion = fb->getMaxGLESVersion(); in rcGetGLString()
739 FrameBuffer *fb = FrameBuffer::getFB(); in rcChooseConfig() local
740 if (!fb) { in rcChooseConfig()
752 return fb->getConfigs()->chooseConfig( in rcChooseConfig()
758 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetFBParam() local
759 if (!fb) { in rcGetFBParam()
762 return fb->getDisplayConfigsParam(0, param); in rcGetFBParam()
768 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateContext() local
769 if (!fb) { in rcCreateContext()
773 HandleType ret = fb->createEmulatedEglContext(config, share, (GLESApi)glVersion); in rcCreateContext()
779 FrameBuffer *fb = FrameBuffer::getFB(); in rcDestroyContext() local
780 if (!fb) { in rcDestroyContext()
784 fb->destroyEmulatedEglContext(context); in rcDestroyContext()
790 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateWindowSurface() local
791 if (!fb) { in rcCreateWindowSurface()
795 return fb->createEmulatedEglWindowSurface(config, width, height); in rcCreateWindowSurface()
800 FrameBuffer *fb = FrameBuffer::getFB(); in rcDestroyWindowSurface() local
801 if (!fb) { in rcDestroyWindowSurface()
805 fb->destroyEmulatedEglWindowSurface(windowSurface); in rcDestroyWindowSurface()
811 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateColorBuffer() local
812 if (!fb) { in rcCreateColorBuffer()
816 return fb->createColorBuffer(width, height, internalFormat, in rcCreateColorBuffer()
824 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateColorBufferDMA() local
825 if (!fb) { in rcCreateColorBufferDMA()
829 return fb->createColorBuffer(width, height, internalFormat, in rcCreateColorBufferDMA()
835 FrameBuffer *fb = FrameBuffer::getFB(); in rcOpenColorBuffer2() local
836 if (!fb) { in rcOpenColorBuffer2()
839 return fb->openColorBuffer( colorbuffer ); in rcOpenColorBuffer2()
849 FrameBuffer *fb = FrameBuffer::getFB(); in rcCloseColorBuffer() local
850 if (!fb) { in rcCloseColorBuffer()
853 fb->closeColorBuffer( colorbuffer ); in rcCloseColorBuffer()
862 FrameBuffer *fb = FrameBuffer::getFB(); in rcFlushWindowColorBuffer() local
863 if (!fb) { in rcFlushWindowColorBuffer()
868 HandleType colorBufferHandle = fb->getEmulatedEglWindowSurfaceColorBufferHandle(windowSurface); in rcFlushWindowColorBuffer()
870 if (!fb->flushEmulatedEglWindowSurfaceColorBuffer(windowSurface)) { in rcFlushWindowColorBuffer()
876 fb->flushColorBufferFromGl(colorBufferHandle); in rcFlushWindowColorBuffer()
914 FrameBuffer *fb = FrameBuffer::getFB(); in rcSetWindowColorBuffer() local
915 if (!fb) { in rcSetWindowColorBuffer()
918 fb->setEmulatedEglWindowSurfaceColorBuffer(windowSurface, colorBuffer); in rcSetWindowColorBuffer()
924 FrameBuffer *fb = FrameBuffer::getFB(); in rcMakeCurrent() local
925 if (!fb) { in rcMakeCurrent()
929 bool ret = fb->bindContext(context, drawSurf, readSurf); in rcMakeCurrent()
936 FrameBuffer *fb = FrameBuffer::getFB(); in rcFBPost() local
937 if (!fb) { in rcFBPost()
941 fb->post(colorBuffer); in rcFBPost()
951 FrameBuffer *fb = FrameBuffer::getFB(); in rcBindTexture() local
952 if (!fb) { in rcBindTexture()
957 fb->invalidateColorBufferForGl(colorBuffer); in rcBindTexture()
959 fb->bindColorBufferToTexture(colorBuffer); in rcBindTexture()
964 FrameBuffer *fb = FrameBuffer::getFB(); in rcBindRenderbuffer() local
965 if (!fb) { in rcBindRenderbuffer()
970 fb->invalidateColorBufferForGl(colorBuffer); in rcBindRenderbuffer()
972 fb->bindColorBufferToRenderbuffer(colorBuffer); in rcBindRenderbuffer()
990 FrameBuffer *fb = FrameBuffer::getFB(); in rcReadColorBuffer() local
991 if (!fb) { in rcReadColorBuffer()
995 fb->readColorBuffer(colorBuffer, x, y, width, height, format, type, pixels); in rcReadColorBuffer()
1003 FrameBuffer *fb = FrameBuffer::getFB(); in rcUpdateColorBuffer() local
1005 if (!fb) { in rcUpdateColorBuffer()
1011 fb->updateColorBuffer(colorBuffer, x, y, width, height, format, type, pixels); in rcUpdateColorBuffer()
1025 FrameBuffer *fb = FrameBuffer::getFB(); in rcUpdateColorBufferDMA() local
1027 if (!fb) { in rcUpdateColorBufferDMA()
1033 fb->updateColorBuffer(colorBuffer, x, y, width, height, in rcUpdateColorBufferDMA()
1044 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateClientImage() local
1045 if (!fb) { in rcCreateClientImage()
1049 return fb->createEmulatedEglImage(context, target, buffer); in rcCreateClientImage()
1054 FrameBuffer *fb = FrameBuffer::getFB(); in rcDestroyClientImage() local
1055 if (!fb) { in rcDestroyClientImage()
1059 return fb->destroyEmulatedEglImage(image); in rcDestroyClientImage()
1087 FrameBuffer *fb = FrameBuffer::getFB(); in rcTriggerWait() local
1088 if (fb && fenceSync && fenceSync->isCompositionFence()) { in rcTriggerWait()
1089 fb->scheduleVsyncTask([eglsync_ptr, fenceSync, timeline](uint64_t) { in rcTriggerWait()
1124 FrameBuffer* fb = FrameBuffer::getFB(); in rcCreateSyncKHR() local
1126 fb->createEmulatedEglFenceSync(type, in rcCreateSyncKHR()
1132 if (tInfo && outSync && shouldEnableVsyncGatedSyncFences(fb->getFeatures())) { in rcCreateSyncKHR()
1151 FrameBuffer *fb = FrameBuffer::getFB(); in rcClientWaitSyncKHR() local
1168 fb->createTrivialContext(0, // There is no context to share. in rcClientWaitSyncKHR()
1171 fb->bindContext(gralloc_sync_cxt, in rcClientWaitSyncKHR()
1188 FrameBuffer *fb = FrameBuffer::getFB(); in rcWaitSyncKHR() local
1201 fb->createTrivialContext(0, // There is no context to share. in rcWaitSyncKHR()
1204 fb->bindContext(gralloc_sync_cxt, in rcWaitSyncKHR()
1237 FrameBuffer *fb = FrameBuffer::getFB(); in rcCompose() local
1238 if (!fb) { in rcCompose()
1241 return fb->compose(bufferSize, buffer, true); in rcCompose()
1248 FrameBuffer *fb = FrameBuffer::getFB(); in rcComposeWithoutPost() local
1249 if (!fb) { in rcComposeWithoutPost()
1252 return fb->compose(bufferSize, buffer, false); in rcComposeWithoutPost()
1256 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateDisplay() local
1257 if (!fb) { in rcCreateDisplay()
1263 return fb->createDisplay(displayId); in rcCreateDisplay()
1267 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateDisplayById() local
1268 if (!fb) { in rcCreateDisplayById()
1272 return fb->createDisplay(displayId); in rcCreateDisplayById()
1276 FrameBuffer *fb = FrameBuffer::getFB(); in rcDestroyDisplay() local
1277 if (!fb) { in rcDestroyDisplay()
1281 return fb->destroyDisplay(displayId); in rcDestroyDisplay()
1285 FrameBuffer *fb = FrameBuffer::getFB(); in rcSetDisplayColorBuffer() local
1286 if (!fb) { in rcSetDisplayColorBuffer()
1290 return fb->setDisplayColorBuffer(displayId, colorBuffer); in rcSetDisplayColorBuffer()
1294 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetDisplayColorBuffer() local
1295 if (!fb) { in rcGetDisplayColorBuffer()
1299 return fb->getDisplayColorBuffer(displayId, colorBuffer); in rcGetDisplayColorBuffer()
1303 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetColorBufferDisplay() local
1304 if (!fb) { in rcGetColorBufferDisplay()
1308 return fb->getColorBufferDisplay(colorBuffer, displayId); in rcGetColorBufferDisplay()
1316 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetDisplayPose() local
1317 if (!fb) { in rcGetDisplayPose()
1321 return fb->getDisplayPose(displayId, x, y, w, h); in rcGetDisplayPose()
1329 FrameBuffer *fb = FrameBuffer::getFB(); in rcSetDisplayPose() local
1330 if (!fb) { in rcSetDisplayPose()
1334 return fb->setDisplayPose(displayId, x, y, w, h); in rcSetDisplayPose()
1343 FrameBuffer *fb = FrameBuffer::getFB(); in rcSetDisplayPoseDpi() local
1344 if (!fb) { in rcSetDisplayPoseDpi()
1348 return fb->setDisplayPose(displayId, x, y, w, h, dpi); in rcSetDisplayPoseDpi()
1356 FrameBuffer *fb = FrameBuffer::getFB(); in rcReadColorBufferYUV() local
1357 if (!fb) { in rcReadColorBufferYUV()
1361 fb->readColorBufferYUV(colorBuffer, x, y, width, height, pixels, pixels_size); in rcReadColorBufferYUV()
1373 FrameBuffer *fb = FrameBuffer::getFB(); in rcCreateColorBufferWithHandle() local
1375 if (!fb) { in rcCreateColorBufferWithHandle()
1379 fb->createColorBufferWithHandle( in rcCreateColorBufferWithHandle()
1385 FrameBuffer* fb = FrameBuffer::getFB(); in rcCreateBuffer2() local
1386 if (!fb) { in rcCreateBuffer2()
1390 return fb->createBuffer(size, memoryProperty); in rcCreateBuffer2()
1398 FrameBuffer* fb = FrameBuffer::getFB(); in rcCloseBuffer() local
1399 if (!fb) { in rcCloseBuffer()
1402 fb->closeBuffer(buffer); in rcCloseBuffer()
1464 FrameBuffer* fb = FrameBuffer::getFB(); in rcMakeCurrentAsync() local
1465 if (!fb) { return; } in rcMakeCurrentAsync()
1467 fb->bindContext(context, drawSurf, readSurf); in rcMakeCurrentAsync()
1474 FrameBuffer* fb = FrameBuffer::getFB(); in rcComposeAsync() local
1475 if (!fb) { in rcComposeAsync()
1478 fb->compose(bufferSize, buffer, true); in rcComposeAsync()
1485 FrameBuffer *fb = FrameBuffer::getFB(); in rcComposeAsyncWithoutPost() local
1486 if (!fb) { in rcComposeAsyncWithoutPost()
1489 fb->compose(bufferSize, buffer, false); in rcComposeAsyncWithoutPost()
1503 FrameBuffer *fb = FrameBuffer::getFB(); in rcReadColorBufferDMA() local
1504 if (!fb) { in rcReadColorBufferDMA()
1508 fb->readColorBuffer(colorBuffer, x, y, width, height, format, type, pixels); in rcReadColorBufferDMA()
1513 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetFBDisplayConfigsCount() local
1514 if (!fb) { in rcGetFBDisplayConfigsCount()
1517 return fb->getDisplayConfigsCount(); in rcGetFBDisplayConfigsCount()
1521 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetFBDisplayConfigsParam() local
1522 if (!fb) { in rcGetFBDisplayConfigsParam()
1525 return fb->getDisplayConfigsParam(configId, param); in rcGetFBDisplayConfigsParam()
1529 FrameBuffer *fb = FrameBuffer::getFB(); in rcGetFBDisplayActiveConfig() local
1530 if (!fb) { in rcGetFBDisplayActiveConfig()
1533 return fb->getDisplayActiveConfig(); in rcGetFBDisplayActiveConfig()