Changeset 1391 for trunk/BAL/Graphics/WebCore/WK/BCGraphicsContext3DWK.h
- Timestamp:
- 03/01/10 16:40:39 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/Graphics/WebCore/WK/BCGraphicsContext3DWK.h
r1380 r1391 45 45 typedef GLuint Platform3DObject; 46 46 const Platform3DObject NullPlatform3DObject = 0; 47 #elif PLATFORM(QT) 48 #include <QtOpenGL/QtOpenGL> 49 50 typedef void* PlatformGraphicsContext3D; 51 const PlatformGraphicsContext3D NullPlatformGraphicsContext3D = 0; 52 typedef int Platform3DObject; 53 const Platform3DObject NullPlatform3DObject = 0; 47 54 #else 48 55 typedef void* PlatformGraphicsContext3D; … … 66 73 class WebGLTexture; 67 74 class Image; 75 class ImageData; 68 76 69 77 struct ActiveInfo { … … 74 82 75 83 // FIXME: ideally this would be used on all platforms. 76 #if PLATFORM(CHROMIUM) 84 #if PLATFORM(CHROMIUM) || PLATFORM(QT) 77 85 class GraphicsContext3DInternal; 78 86 #endif … … 410 418 PlatformGraphicsContext3D platformGraphicsContext3D() const; 411 419 Platform3DObject platformTexture() const; 420 #elif PLATFORM(QT) 421 PlatformGraphicsContext3D platformGraphicsContext3D(); 422 Platform3DObject platformTexture() const; 412 423 #else 413 424 PlatformGraphicsContext3D platformGraphicsContext3D() const { return NullPlatformGraphicsContext3D; } … … 435 446 unsigned int* format, 436 447 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); 437 456 438 457 // Processes the given image data in preparation for uploading … … 705 724 706 725 // FIXME: ideally this would be used on all platforms. 707 #if PLATFORM(CHROMIUM) 726 #if PLATFORM(CHROMIUM) || PLATFORM(QT) 708 727 friend class GraphicsContext3DInternal; 709 728 OwnPtr<GraphicsContext3DInternal> m_internal;
