diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-09-13 10:46:23 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-09-13 10:46:23 +0200 |
commit | 21a2ce41a8efb6c5ab4ab2674458309bc9f031b7 (patch) | |
tree | 927045bf52f3367551cb4af17aa6b5738408c1bb /src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp | |
parent | e47eb9057bf08834885ba6ef5e593d6f1844405c (diff) | |
parent | af711da1389c86c969d4872ec0936a90c46e1343 (diff) |
Merge branch 'refactor'
Conflicts:
src/qt-compositor/compositor_api/waylandcompositor.cpp
src/qt-compositor/wayland_wrapper/wloutput.cpp
Diffstat (limited to 'src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp')
-rw-r--r-- | src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp b/src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp index 511072d..3f47fd9 100644 --- a/src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp +++ b/src/qt-compositor/hardware_integration/xcomposite_egl/xcompositeeglintegration.cpp @@ -4,7 +4,7 @@ #include "wayland_wrapper/wlcompositor.h" #include "wayland-xcomposite-server-protocol.h" -#include <QtGui/QApplication> +#include <QtWidgets/QApplication> #include <QtGui/QPlatformNativeInterface> #include <QtGui/QPlatformGLContext> @@ -42,10 +42,10 @@ XCompositeEglIntegration::XCompositeEglIntegration(WaylandCompositor *compositor { QPlatformNativeInterface *nativeInterface = QApplication::platformNativeInterface(); if (nativeInterface) { - mDisplay = static_cast<Display *>(nativeInterface->nativeResourceForWidget("Display",m_compositor->topLevelWidget())); + mDisplay = static_cast<Display *>(nativeInterface->nativeResourceForWidget("Display",m_compositor->window())); if (!mDisplay) qFatal("could not retireve Display from platform integration"); - mEglDisplay = static_cast<EGLDisplay>(nativeInterface->nativeResourceForWidget("EGLDisplay",m_compositor->topLevelWidget())); + mEglDisplay = static_cast<EGLDisplay>(nativeInterface->nativeResourceForWidget("EGLDisplay",m_compositor->window())); if (!mEglDisplay) qFatal("could not retrieve EGLDisplay from plaform integration"); } else { @@ -56,11 +56,8 @@ XCompositeEglIntegration::XCompositeEglIntegration(WaylandCompositor *compositor void XCompositeEglIntegration::initializeHardware(Wayland::Display *waylandDisplay) { - XCompositeHandler *handler = new XCompositeHandler(m_compositor->handle(),mDisplay,m_compositor->topLevelWidget()); + XCompositeHandler *handler = new XCompositeHandler(m_compositor->handle(),mDisplay,m_compositor->window()); waylandDisplay->addGlobalObject(handler->base(), &wl_xcomposite_interface, &XCompositeHandler::xcomposite_interface,XCompositeHandler::send_root_information); - - QPlatformGLContext *glContext = m_compositor->topLevelWidget()->platformWindow()->glContext(); - } GLuint XCompositeEglIntegration::createTextureFromBuffer(wl_buffer *buffer) |