Changeset 92596 in webkit


Ignore:
Timestamp:
Aug 8, 2011 8:29:46 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Implement WebGL antialiasing (part 3)
https://bugs.webkit.org/show_bug.cgi?id=64879

Patch by Andrew Wason <rectalogic@rectalogic.com> on 2011-08-08
Reviewed by Noam Rosenthal.

Existing WebGL layout tests.

Adopt Extensions3DOpenGL for Qt desktop as a prerequisite
for implementing WebGL antialiasing.
Extensions3DQt is still used for ES2.

  • WebCore.pri:
  • WebCore.pro:
  • platform/graphics/GraphicsContext3D.h:
  • platform/graphics/opengl/Extensions3DOpenGL.cpp:

(WebCore::Extensions3DOpenGL::createVertexArrayOES):
(WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
(WebCore::Extensions3DOpenGL::isVertexArrayOES):
(WebCore::Extensions3DOpenGL::bindVertexArrayOES):

  • platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:

(WebCore::GraphicsContext3D::getExtensions):

  • platform/graphics/qt/GraphicsContext3DQt.cpp:

(WebCore::GraphicsContext3D::layerComposited):

Location:
trunk/Source/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r92594 r92596  
     12011-08-08  Andrew Wason  <rectalogic@rectalogic.com>
     2
     3        [Qt] Implement WebGL antialiasing (part 3)
     4        https://bugs.webkit.org/show_bug.cgi?id=64879
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Existing WebGL layout tests.
     9
     10        Adopt Extensions3DOpenGL for Qt desktop as a prerequisite
     11        for implementing WebGL antialiasing.
     12        Extensions3DQt is still used for ES2.
     13
     14        * WebCore.pri:
     15        * WebCore.pro:
     16        * platform/graphics/GraphicsContext3D.h:
     17        * platform/graphics/opengl/Extensions3DOpenGL.cpp:
     18        (WebCore::Extensions3DOpenGL::createVertexArrayOES):
     19        (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
     20        (WebCore::Extensions3DOpenGL::isVertexArrayOES):
     21        (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
     22        * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
     23        (WebCore::GraphicsContext3D::getExtensions):
     24        * platform/graphics/qt/GraphicsContext3DQt.cpp:
     25        (WebCore::GraphicsContext3D::layerComposited):
     26
    1272011-08-08  Benjamin Poulain  <benjamin@webkit.org>
    228
  • trunk/Source/WebCore/WebCore.pri

    r92555 r92596  
    125125    $$SOURCE_DIR/WebCore/bridge/qt \
    126126    $$SOURCE_DIR/WebCore/page/qt \
     127    $$SOURCE_DIR/WebCore/platform/graphics/opengl \
    127128    $$SOURCE_DIR/WebCore/platform/graphics/qt \
    128129    $$SOURCE_DIR/WebCore/platform/network/qt \
  • trunk/Source/WebCore/WebCore.pro

    r92538 r92596  
    36603660
    36613661    !contains(QT_CONFIG, opengles2) {
     3662        HEADERS += \
     3663            platform/graphics/opengl/Extensions3DOpenGL.h
     3664
    36623665        SOURCES += \
     3666            platform/graphics/opengl/Extensions3DOpenGL.cpp \
    36633667            platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
    36643668
  • trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h

    r91694 r92596  
    8989class DrawingBuffer;
    9090class Extensions3D;
    91 #if PLATFORM(MAC) || PLATFORM(GTK)
     91#if PLATFORM(MAC) || PLATFORM(GTK) || PLATFORM(QT)
    9292class Extensions3DOpenGL;
    93 #elif PLATFORM(QT)
     93#endif
     94#if PLATFORM(QT)
    9495class Extensions3DQt;
    9596#endif
     
    919920
    920921    ANGLEWebKitBridge m_compiler;
    921 #if PLATFORM(QT)
     922#if PLATFORM(QT) && defined(QT_OPENGL_ES_2)
    922923    friend class Extensions3DQt;
    923924    OwnPtr<Extensions3DQt> m_extensions;
  • trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp

    r83762 r92596  
    3838#elif PLATFORM(GTK)
    3939#include "OpenGLShims.h"
     40#elif PLATFORM(QT)
     41#include <cairo/OpenGLShims.h>
    4042#endif
    4143
     
    148150{
    149151    m_context->makeContextCurrent();
    150 #if !PLATFORM(GTK) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
     152#if !PLATFORM(GTK) && !PLATFORM(QT) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
    151153    GLuint array = 0;
    152154    glGenVertexArraysAPPLE(1, &array);
     
    163165   
    164166    m_context->makeContextCurrent();
    165 #if !PLATFORM(GTK) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
     167#if !PLATFORM(GTK) && !PLATFORM(QT) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
    166168    glDeleteVertexArraysAPPLE(1, &array);
    167169#endif
     
    174176   
    175177    m_context->makeContextCurrent();
    176 #if !PLATFORM(GTK) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
     178#if !PLATFORM(GTK) && !PLATFORM(QT) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
    177179    return glIsVertexArrayAPPLE(array);
    178180#else
     
    187189
    188190    m_context->makeContextCurrent();
    189 #if !PLATFORM(GTK) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
     191#if !PLATFORM(GTK) && !PLATFORM(QT) && defined(GL_APPLE_vertex_array_object) && GL_APPLE_vertex_array_object
    190192    glBindVertexArrayAPPLE(array);
    191193#endif
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp

    r91694 r92596  
    15241524}
    15251525
    1526 #if !PLATFORM(QT)
    15271526Extensions3D* GraphicsContext3D::getExtensions()
    15281527{
     
    15311530    return m_extensions.get();
    15321531}
    1533 #endif
    15341532
    15351533}
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp

    r91694 r92596  
    2424#include <cairo/OpenGLShims.h>
    2525#include "CanvasRenderingContext.h"
     26#if defined(QT_OPENGL_ES_2)
    2627#include "Extensions3DQt.h"
     28#else
     29#include "Extensions3DOpenGL.h"
     30#endif
    2731#include "GraphicsContext.h"
    2832#include "HTMLCanvasElement.h"
     
    14961500    return m_layerComposited;
    14971501}
    1498 #endif
    14991502
    15001503Extensions3D* GraphicsContext3D::getExtensions()
     
    15041507    return m_extensions.get();
    15051508}
     1509#endif
    15061510
    15071511bool GraphicsContext3D::getImageData(Image* image,
Note: See TracChangeset for help on using the changeset viewer.