| Index: Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp
|
| diff --git a/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp b/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp
|
| index c4d2d541842d6b16caed1a193a7ece122c81ba95..15ab255bd1528d99b94453335a843308b97f6de5 100644
|
| --- a/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp
|
| +++ b/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp
|
| @@ -31,12 +31,6 @@
|
| #include <OpenGL/gl.h>
|
| #include <mach/mach.h>
|
|
|
| -#if PLATFORM(QT)
|
| -#include <QGuiApplication>
|
| -#include <QOpenGLContext>
|
| -#include <qpa/qplatformnativeinterface.h>
|
| -#endif
|
| -
|
| namespace WebCore {
|
|
|
| static uint32_t createTexture(IOSurfaceRef handle)
|
| @@ -92,19 +86,6 @@ public:
|
| , m_readFbo(0)
|
| , m_drawFbo(0)
|
| {
|
| -#if PLATFORM(QT)
|
| - QPlatformNativeInterface* nativeInterface = QGuiApplication::platformNativeInterface();
|
| - CGLContextObj shareContextObject = static_cast<CGLContextObj>(nativeInterface->nativeResourceForContext(QByteArrayLiteral("cglContextObj"), shareContext));
|
| - if (!shareContextObject)
|
| - return;
|
| -
|
| - CGLPixelFormatObj pixelFormatObject = CGLGetPixelFormat(shareContextObject);
|
| - if (kCGLNoError != CGLCreateContext(pixelFormatObject, shareContextObject, &m_context))
|
| - return;
|
| -
|
| - CGLRetainContext(m_context);
|
| -#endif
|
| -
|
| unsigned pixelFormat = 'BGRA';
|
| unsigned bytesPerElement = 4;
|
| int width = m_size.width();
|
|
|