diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2014-04-02 02:27:31 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-09 18:13:50 +0200 |
commit | 8e1a9c88431bbae3a47d09799395d81f76626ec0 (patch) | |
tree | d09be6d92354ac9afdc46d809f17fe617f9a66c4 /examples/webenginewidgets/browser/browsermainwindow.cpp | |
parent | 6de87734c623d0b6ecfea0440ee396a00d59d74f (diff) | |
download | qtwebengine-8e1a9c88431bbae3a47d09799395d81f76626ec0.tar.gz |
Add GLContextHelper class for EGL context creation.
Shared EGL contexts should always be created on the same
thread, as otherwise context creation might fail.
We use a GLContextHelper singleton that is initialized
on startup and creates the contexts when requested
through a BlockingQueuedConnection.
There is a pretty and a correct solution for this problem.
This is the pretty one. It is based on the assumption
that Chromium decides to use the same or a similar enough
configuration for the EGLContext as Qt previously did.
But we prefer pretty over correct as the correct solution
would potentially impose a layering violation.
This is enabled for all embedded linux devices.
Change-Id: I910cc90d0f87fd6d1fe0a475b17ba56cd8c503f6
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'examples/webenginewidgets/browser/browsermainwindow.cpp')
0 files changed, 0 insertions, 0 deletions