Commit 682ddcd7 authored by Jocelyn Turcotte's avatar Jocelyn Turcotte Committed by The Qt Project
Browse files

Use a fence sync to synchronize GL between threads


The NVidia driver needs more than a glFlush to ensure that GL commands
consuming Chromium resources are run only when the resource is completely
produced by the Chromium GPU thread.

This produces artifacts and an uneven frame rate in WebGL examples
on this kind of hardware.

Use the same mechanism as used by gfx::GLFence, doing a few things
manually to cope with the fact that Chromium and Qt both have their
own GL function table and contexts.

Change-Id: I33eeb1068994dc4176038a74579ce768b2bccb9d
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
parent f61493ee
Showing with 114 additions and 3 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment