AVFoundation: Remove QVideoSurfaceCoreGraphicsPainter
This was a leftover from Qt 4, as it is no longer possible to use the CoreGraphics paint engine. Instead we should just use the logic in QPainterVideoSurface render the QVideoFrame. Change-Id: I7e97fe7c30fd478dcd405d300e0c3f70050ca25f Reviewed-by: Christian Stromme <christian.stromme@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
9f15a98891
commit
d3531cb0cc
@@ -40,7 +40,6 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qpaintervideosurface_p.h"
|
||||
#include "qpaintervideosurface_mac_p.h"
|
||||
|
||||
#include <qmath.h>
|
||||
|
||||
@@ -51,6 +50,7 @@
|
||||
#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1)
|
||||
#include <qglshaderprogram.h>
|
||||
#include <QtGui/QOpenGLContext>
|
||||
#include <QtGui/QWindow>
|
||||
#ifndef GL_CLAMP_TO_EDGE
|
||||
#define GL_CLAMP_TO_EDGE 0x812F
|
||||
#endif
|
||||
@@ -1196,8 +1196,8 @@ QAbstractVideoSurface::Error QVideoSurfaceGlslPainter::paint(
|
||||
if (scissorTestEnabled)
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
||||
const int width = QGLContext::currentContext()->device()->width();
|
||||
const int height = QGLContext::currentContext()->device()->height();
|
||||
const int width = QOpenGLContext::currentContext()->surface()->size().width();
|
||||
const int height = QOpenGLContext::currentContext()->surface()->size().height();
|
||||
|
||||
const QTransform transform = painter->deviceTransform();
|
||||
|
||||
@@ -1667,14 +1667,6 @@ void QPainterVideoSurface::createPainter()
|
||||
{
|
||||
Q_ASSERT(!m_painter);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
if (m_glContext)
|
||||
m_glContext->makeCurrent();
|
||||
|
||||
m_painter = new QVideoSurfaceCoreGraphicsPainter(m_glContext != 0);
|
||||
return;
|
||||
#endif
|
||||
|
||||
#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1)
|
||||
switch (m_shaderType) {
|
||||
#ifndef QT_OPENGL_ES
|
||||
|
||||
Reference in New Issue
Block a user