-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=78720 Patch by Roland Takacs <takacs.roland@stud.u-szeged.hu> on 2012-06-05 Reviewed by Noam Rosenthal. Source/WebCore: Functions are removed from GraphicsContext3DQt that already implemented in GraphicsContext3DCommon. Macros that not supported at GLES have been changed to their appropriate pair that found in GraphicsContext3D (e.g. GL_FRAMEBUFFER_EXT to GraphicsContext3D::FRAMEBUFFER). It was needed because OpenGLES does not support these macros. Extensions3DQt is removed beceause it has never been used. Some functions have been moved fron GraphicsContext3DCommon to *OpenGL and *OpenGLES to provide specialization. The "m_depthStencilBuffer" member is added to Qt port because it uses "m_depthStencilBuffer" like the other platforms. * Target.pri: * platform/graphics/GraphicsContext3D.h: * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: (WebCore::GraphicsContext3D::depthRange): (WebCore): (WebCore::GraphicsContext3D::clearDepth): * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::prepareTexture): (WebCore::GraphicsContext3D::readRenderingResults): (WebCore::GraphicsContext3D::reshape): (WebCore::GraphicsContext3D::copyTexImage2D): (WebCore::GraphicsContext3D::copyTexSubImage2D): (WebCore::GraphicsContext3D::readPixels): * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp: (WebCore::GraphicsContext3D::reshapeFBOs): (WebCore::GraphicsContext3D::depthRange): (WebCore): (WebCore::GraphicsContext3D::clearDepth): * platform/graphics/qt/GraphicsContext3DQt.cpp: (WebCore::GraphicsContext3D::isGLES2Compliant): (WebCore::GraphicsContext3DPrivate::blitMultisampleFramebuffer): (WebCore::GraphicsContext3D::GraphicsContext3D): (WebCore::GraphicsContext3D::~GraphicsContext3D): (WebCore): Source/WTF: Defined a global Opengl ES macro to check OpenGL ES on every platforms. * wtf/Platform.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2cb5cd3d