Alternative of glFenceSync and glWaitSync on Skia Renderer side

58 views
Skip to first unread message

uzair jaleel

unread,
Feb 21, 2023, 4:37:56 AM2/21/23
to Graphics-dev
Hi All,

We are working on platform similar to linux and we render all composited content to an offscreen buffer like texture and then draw that texture content onto a platform window.

In earlier versions where GLRenderer(GLOutputSurfaceOffscreen) existed  we were using glFenceSync and glWaitSync to fix few rendering issues like blinking, black screen which occurred randomly on few web pages due to platform limitations.

With  GLRenderer  deprecated and SkiaRenderer(SkiaOutputDeviceOffscreen) being the default now, is there any equivalent of glFenceSync and glWaitSync which we can use to overcome these rendering issues.

We tried using GrDirectContext::flushAndSubmit(true) which helped but it has an impact of performance.

Any input regarding above would be helpful.

Thanks
Reply all
Reply to author
Forward
0 new messages