Show
Ignore:
Timestamp:
03/01/10 16:40:39 (6 months ago)
Author:
gbertal
Message:

merge with webkit revision 55361

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/Graphics/WebCore/WK/BCGraphicsContext3DWK.h

    r1380 r1391  
    4545typedef GLuint Platform3DObject; 
    4646const Platform3DObject NullPlatform3DObject = 0; 
     47#elif PLATFORM(QT) 
     48#include <QtOpenGL/QtOpenGL> 
     49 
     50typedef void* PlatformGraphicsContext3D; 
     51const  PlatformGraphicsContext3D NullPlatformGraphicsContext3D = 0; 
     52typedef int Platform3DObject; 
     53const Platform3DObject NullPlatform3DObject = 0; 
    4754#else 
    4855typedef void* PlatformGraphicsContext3D; 
     
    6673    class WebGLTexture; 
    6774    class Image; 
     75    class ImageData; 
    6876 
    6977    struct ActiveInfo { 
     
    7482 
    7583    // FIXME: ideally this would be used on all platforms. 
    76 #if PLATFORM(CHROMIUM) 
     84#if PLATFORM(CHROMIUM) || PLATFORM(QT) 
    7785    class GraphicsContext3DInternal; 
    7886#endif 
     
    410418        PlatformGraphicsContext3D platformGraphicsContext3D() const; 
    411419        Platform3DObject platformTexture() const; 
     420#elif PLATFORM(QT) 
     421        PlatformGraphicsContext3D platformGraphicsContext3D(); 
     422        Platform3DObject platformTexture() const; 
    412423#else 
    413424        PlatformGraphicsContext3D platformGraphicsContext3D() const { return NullPlatformGraphicsContext3D; } 
     
    435446                              unsigned int* format, 
    436447                              unsigned int* internalFormat); 
     448 
     449        // Extracts the contents of the given ImageData into the passed 
     450        // Vector, obeying the flipY and premultiplyAlpha flags. 
     451        // Returns true upon success. 
     452        bool extractImageData(ImageData*, 
     453                              bool flipY, 
     454                              bool premultiplyAlpha, 
     455                              Vector<uint8_t>& data); 
    437456 
    438457        // Processes the given image data in preparation for uploading 
     
    705724 
    706725        // FIXME: ideally this would be used on all platforms. 
    707 #if PLATFORM(CHROMIUM) 
     726#if PLATFORM(CHROMIUM) || PLATFORM(QT) 
    708727        friend class GraphicsContext3DInternal; 
    709728        OwnPtr<GraphicsContext3DInternal> m_internal;