Skip to content

[Impeller] use glFenceSync to correctly synchronize background image decoding. #158963

@jonahwilliams

Description

@jonahwilliams

Taking a quick look at Skia, it looks like they handle this by using glFenceSync semaphores and glFlush

(https://skia.googlesource.com/skia/+/refs/heads/main/src/gpu/ganesh/gl/GrGLGpu.cpp#4461)

If the platform does not support glFenceSync (like GLES 2.0), then it looks like they need to fall back to glFinish
(https://skia.googlesource.com/skia/+/refs/heads/main/src/gpu/ganesh/gl/GrGLGpu.cpp#4307)

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: impellerImpeller rendering backend issues and features requestse: openglteam-engineOwned by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions