Show
Ignore:
Timestamp:
08/15/08 13:25:16 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35774

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/WKAL/Concretizations/Graphics/Cairo/BCImageBufferCairo.h

    r243 r437  
    3434#include <memory> 
    3535 
    36 #if !PLATFORM(CG) 
    37 #include "NotImplemented.h" 
    38 #endif 
    39  
    40 #if PLATFORM(CG) 
    41 typedef struct CGImage* CGImageRef; 
    42 #endif 
    43  
    44 #if PLATFORM(QT) 
    45 #include <QPixmap> 
    46 QT_BEGIN_NAMESPACE 
    47 class QPainter; 
    48 QT_END_NAMESPACE 
    49 #endif 
    50  
    51 #if PLATFORM(CAIRO) 
    52 typedef struct _cairo_surface cairo_surface_t; 
    53 #endif 
    54  
    5536namespace WKAL { 
    5637 
     
    7051        GraphicsContext* context() const; 
    7152 
    72 #if PLATFORM(CG) 
    73         CGImageRef cgImage() const { return image()->getCGImageRef(); } 
    74 #elif PLATFORM(QT) 
    75         QPixmap* pixmap() const; 
    76 #elif PLATFORM(CAIRO) 
    77         cairo_surface_t* surface() const; 
    78 #endif 
    79  
    80 #if PLATFORM(CG) || PLATFORM(CAIRO) || PLATFORM(QT) 
    8153        Image* image() const; 
    82 #else 
    83         Image* image() const { notImplemented(); return 0; } 
    84 #endif 
    8554 
    8655        void clearImage() { m_image.clear(); } 
     
    9160        String toDataURL(const String& mimeType) const; 
    9261 
    93          
    94  
    9562    private: 
    9663        void* m_data; 
     
    9865 
    9966        OwnPtr<GraphicsContext> m_context; 
    100         mutable OwnPtr<Image> m_image; 
     67        mutable RefPtr<Image> m_image; 
    10168     
    10269#if PLATFORM(CG) 
    10370        ImageBuffer(void* imageData, const IntSize&, std::auto_ptr<GraphicsContext>); 
    10471#elif PLATFORM(QT) 
    105         ImageBuffer(const QPixmap &px); 
     72        ImageBuffer(const QPixmap&); 
    10673        mutable QPixmap m_pixmap; 
    10774        mutable QPainter* m_painter; 
    10875#elif PLATFORM(CAIRO) 
    109         ImageBuffer(cairo_surface_t* surface); 
     76        ImageBuffer(cairo_surface_t*); 
    11077        mutable cairo_surface_t* m_surface; 
    11178#endif