diff options
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index d2550e48d..feec45e90 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -75,6 +75,7 @@ #include "gl_context_qt.h" #include "media_capture_devices_dispatcher.h" #include "type_conversion.h" +#include "surface_factory_qt.h" #include "web_engine_library_info.h" #include <QGuiApplication> #include <QStringList> @@ -94,6 +95,7 @@ void destroyContext() WebEngineContext::~WebEngineContext() { + GLContextHelper::destroy(); m_runLoop->AfterRun(); } @@ -159,6 +161,11 @@ WebEngineContext::WebEngineContext() parsedCommandLine->AppendSwitch(cc::switches::kDisableCompositedAntialiasing); parsedCommandLine->AppendSwitchASCII(switches::kProfilerTiming, switches::kProfilerTimingDisabledValue); + + // On eAndroid we use this to get the native display + // from Qt in GLSurfaceEGL::InitializeOneOff. + m_surfaceFactory.reset(new SurfaceFactoryQt()); + gfx::SurfaceFactoryOzone::SetInstance(m_surfaceFactory.get()); #endif GLContextHelper::initialize(); |