Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698