src/gui/image/qpixmap_x11_p.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
    90     QPaintEngine* paintEngine() const;
    90     QPaintEngine* paintEngine() const;
    91 
    91 
    92     Qt::HANDLE handle() const { return hd; }
    92     Qt::HANDLE handle() const { return hd; }
    93     Qt::HANDLE x11ConvertToDefaultDepth();
    93     Qt::HANDLE x11ConvertToDefaultDepth();
    94 
    94 
       
    95     static Qt::HANDLE createBitmapFromImage(const QImage &image);
       
    96 
       
    97     void* gl_surface;
       
    98 #ifndef QT_NO_XRENDER
       
    99     void convertToARGB32(bool preserveContents = true);
       
   100 #endif
       
   101 
    95 protected:
   102 protected:
    96     int metric(QPaintDevice::PaintDeviceMetric metric) const;
   103     int metric(QPaintDevice::PaintDeviceMetric metric) const;
    97 
   104 
    98 private:
   105 private:
    99     friend class QPixmap;
   106     friend class QPixmap;
   101     friend class QX11PaintEngine;
   108     friend class QX11PaintEngine;
   102     friend class QX11WindowSurface;
   109     friend class QX11WindowSurface;
   103     friend class QRasterWindowSurface;
   110     friend class QRasterWindowSurface;
   104     friend class QGLContextPrivate; // Needs to access xinfo, gl_surface & flags
   111     friend class QGLContextPrivate; // Needs to access xinfo, gl_surface & flags
   105     friend class QEglContext; // Needs gl_surface
   112     friend class QEglContext; // Needs gl_surface
       
   113     friend class QGLContext; // Needs gl_surface
   106     friend class QX11GLPixmapData; // Needs gl_surface
   114     friend class QX11GLPixmapData; // Needs gl_surface
   107     friend bool  qt_createEGLSurfaceForPixmap(QPixmapData*, bool); // Needs gl_surface
   115     friend bool  qt_createEGLSurfaceForPixmap(QPixmapData*, bool); // Needs gl_surface
   108 
   116 
   109     void release();
   117     void release();
   110 
   118 
   126     QX11Info xinfo;
   134     QX11Info xinfo;
   127     Qt::HANDLE x11_mask;
   135     Qt::HANDLE x11_mask;
   128     Qt::HANDLE picture;
   136     Qt::HANDLE picture;
   129     Qt::HANDLE mask_picture;
   137     Qt::HANDLE mask_picture;
   130     Qt::HANDLE hd2; // sorted in the default display depth
   138     Qt::HANDLE hd2; // sorted in the default display depth
   131     Qt::HANDLE gl_surface;
       
   132 #ifndef QT_NO_XRENDER
       
   133     void convertToARGB32(bool preserveContents = true);
       
   134 #endif
       
   135     QPixmap::ShareMode share_mode;
   139     QPixmap::ShareMode share_mode;
   136 
   140 
   137     QX11PaintEngine *pengine;
   141     QX11PaintEngine *pengine;
   138 };
   142 };
   139 
   143