File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 5
5
#include " ozone_util_qt.h"
6
6
#include " web_engine_context.h"
7
7
8
- #include < QtCore/qthread.h>
9
8
#include < QtGui/qguiapplication.h>
10
- #include < QtGui/qoffscreensurface.h>
11
9
#include < QtGui/qopenglcontext.h>
12
10
#include < QtGui/qopenglfunctions.h>
13
11
#include < qpa/qplatformnativeinterface.h>
@@ -94,7 +92,6 @@ EGLHelper *EGLHelper::instance()
94
92
EGLHelper::EGLHelper ()
95
93
: m_eglDisplay(qApp->platformNativeInterface ()->nativeResourceForIntegration(" egldisplay" ))
96
94
, m_functions(new EGLHelper::EGLFunctions())
97
- , m_offscreenSurface(new QOffscreenSurface())
98
95
{
99
96
const char *extensions = m_functions->eglQueryString (EGL_NO_DISPLAY, EGL_EXTENSIONS);
100
97
if (!extensions) {
@@ -112,9 +109,6 @@ EGLHelper::EGLHelper()
112
109
return ;
113
110
}
114
111
115
- Q_ASSERT (QThread::currentThread () == qApp->thread ());
116
- m_offscreenSurface->create ();
117
-
118
112
m_isDmaBufSupported = QtWebEngineCore::WebEngineContext::isGbmSupported ();
119
113
120
114
// Check extensions.
Original file line number Diff line number Diff line change 24
24
25
25
QT_BEGIN_NAMESPACE
26
26
27
- class QOffscreenSurface ;
28
-
29
27
class EGLHelper
30
28
{
31
29
public:
@@ -60,7 +58,6 @@ class EGLHelper
60
58
61
59
EGLDisplay m_eglDisplay = EGL_NO_DISPLAY;
62
60
QScopedPointer<EGLFunctions> m_functions;
63
- QScopedPointer<QOffscreenSurface> m_offscreenSurface;
64
61
bool m_isDmaBufSupported = false ;
65
62
};
66
63
You can’t perform that action at this time.
0 commit comments