summaryrefslogtreecommitdiff
path: root/examples/webenginewidgets/browser/browsermainwindow.cpp
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2014-04-02 02:27:31 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-09 18:13:50 +0200
commit8e1a9c88431bbae3a47d09799395d81f76626ec0 (patch)
treed09be6d92354ac9afdc46d809f17fe617f9a66c4 /examples/webenginewidgets/browser/browsermainwindow.cpp
parent6de87734c623d0b6ecfea0440ee396a00d59d74f (diff)
downloadqtwebengine-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