Lines Matching refs:sRenderer
91 static gfxstream::RendererPtr sRenderer = nullptr; variable
145 if (sRenderer) { in android_startOpenglesRenderer()
181 … sRenderer = sRenderLib->initRenderer(width, height, *features, sRendererUsesSubWindow, sEgl2egl); in android_startOpenglesRenderer()
182 android_setOpenglesRenderer(&sRenderer); in android_startOpenglesRenderer()
199 return sRenderer->addressSpaceGraphicsConsumerCreate( in android_startOpenglesRenderer()
204 sRenderer->addressSpaceGraphicsConsumerDestroy(consumer); in android_startOpenglesRenderer()
208 sRenderer->addressSpaceGraphicsConsumerPreSave(consumer); in android_startOpenglesRenderer()
212 sRenderer->pauseAllPreSave(); in android_startOpenglesRenderer()
216 sRenderer->addressSpaceGraphicsConsumerSave(consumer, stream); in android_startOpenglesRenderer()
220 sRenderer->resumeAll(); in android_startOpenglesRenderer()
224 sRenderer->addressSpaceGraphicsConsumerPostSave(consumer); in android_startOpenglesRenderer()
228 sRenderer->addressSpaceGraphicsConsumerRegisterPostLoadRenderThread(consumer); in android_startOpenglesRenderer()
244 if (!sRenderer) { in android_startOpenglesRenderer()
258 if (sRenderer) { in android_asyncReadbackSupported()
259 return sRenderer->asyncReadbackSupported(); in android_asyncReadbackSupported()
270 if (sRenderer) { in android_setPostCallback()
271 sRenderer->setPostCallback(onPost, onPostContext, useBgraReadback, displayId); in android_setPostCallback()
276 if (sRenderer) { in android_getReadPixelsFunc()
277 return sRenderer->getReadPixelsCallback(); in android_getReadPixelsFunc()
284 if (sRenderer) { in android_getFlushReadPixelPipeline()
285 return sRenderer->getFlushReadPixelPipeline(); in android_getFlushReadPixelPipeline()
324 if (!sRenderer) { in android_getOpenglesHardwareStrings()
329 const gfxstream::Renderer::HardwareStrings strings = sRenderer->getHardwareStrings(); in android_getOpenglesHardwareStrings()
356 if (sRenderer) { in android_stopOpenglesRenderer()
357 sRenderer->stop(wait); in android_stopOpenglesRenderer()
359 sRenderer.reset(); in android_stopOpenglesRenderer()
368 if (sRenderer) { in android_finishOpenglesRenderer()
369 sRenderer->finish(); in android_finishOpenglesRenderer()
388 if (!sRenderer) { in android_showOpenglesWindow()
392 bool success = sRenderer->showOpenGLSubwindow(win, wx, wy, ww, wh, fbw, fbh, in android_showOpenglesWindow()
403 if (sRenderer) { in android_setOpenglesTranslation()
404 sRenderer->setOpenGLDisplayTranslation(px, py); in android_setOpenglesTranslation()
411 if (sRenderer) { in android_setOpenglesScreenMask()
412 sRenderer->setScreenMask(width, height, rgbaData); in android_setOpenglesScreenMask()
419 if (!sRenderer) { in android_hideOpenglesWindow()
422 bool success = sRenderer->destroyOpenGLSubwindow(); in android_hideOpenglesWindow()
429 if (sRenderer) { in android_redrawOpenglesWindow()
430 sRenderer->repaintOpenGLDisplay(); in android_redrawOpenglesWindow()
437 if (sRenderer) { in android_hasGuestPostedAFrame()
438 return sRenderer->hasGuestPostedAFrame(); in android_hasGuestPostedAFrame()
446 if (sRenderer) { in android_resetGuestPostedAFrame()
447 sRenderer->resetGuestPostedAFrame(); in android_resetGuestPostedAFrame()
466 const gfxstream::RendererPtr& android_getOpenglesRenderer() { return sRenderer; } in android_getOpenglesRenderer()
469 sRenderer = *renderer; in android_setOpenglesRenderer()
473 if (sRenderer) { in android_onGuestGraphicsProcessCreate()
474 sRenderer->onGuestGraphicsProcessCreate(puid); in android_onGuestGraphicsProcessCreate()
479 if (sRenderer) { in android_cleanupProcGLObjects()
480 sRenderer->cleanupProcGLObjects(puid); in android_cleanupProcGLObjects()
485 if (sRenderer) { in android_cleanupProcGLObjectsAndWaitFinished()
486 sRenderer->cleanupProcGLObjects(puid); in android_cleanupProcGLObjectsAndWaitFinished()
491 if (sRenderer) { in android_waitForOpenglesProcessCleanup()
492 sRenderer->waitForProcessCleanup(); in android_waitForOpenglesProcessCleanup()
497 if (sRenderer) { in android_getVirtioGpuOps()
498 return sRenderer->getVirtioGpuOps(); in android_getVirtioGpuOps()
504 if (sRenderer) { in android_getEGLDispatch()
505 return sRenderer->getEglDispatch(); in android_getEGLDispatch()
511 if (sRenderer) { in android_getGLESv2Dispatch()
512 return sRenderer->getGles2Dispatch(); in android_getGLESv2Dispatch()
518 if (sRenderer) { in android_setVsyncHz()
519 sRenderer->setVsyncHz(vsyncHz); in android_setVsyncHz()
525 if (sRenderer) { in android_setOpenglesDisplayConfigs()
526 sRenderer->setDisplayConfigs(configId, w, h, dpiX, dpiY); in android_setOpenglesDisplayConfigs()
531 if (sRenderer) { in android_setOpenglesDisplayActiveConfig()
532 sRenderer->setDisplayActiveConfig(configId); in android_setOpenglesDisplayActiveConfig()