diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-07-28 09:35:59 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-07-29 10:06:29 (GMT) |
commit | 78f079016e0dd9b455d74c6a84cfbdb859fd1094 (patch) | |
tree | e22747d39cbcafc908df1427445c2e4633e35f75 /src/gui/image/qpixmap_x11_p.h | |
parent | f4978a5894212dd655a91dbb0db02a89070bb165 (diff) | |
download | Qt-78f079016e0dd9b455d74c6a84cfbdb859fd1094.zip Qt-78f079016e0dd9b455d74c6a84cfbdb859fd1094.tar.gz Qt-78f079016e0dd9b455d74c6a84cfbdb859fd1094.tar.bz2 |
Move uninit & readonly into a flags member of QX11PixmapData
Also add 2 new flags and a new member to store any GL bound pixmap
surface (GLXPixmap or EGLPixmapSurface).
Reviewed-By: Samuel
Diffstat (limited to 'src/gui/image/qpixmap_x11_p.h')
-rw-r--r-- | src/gui/image/qpixmap_x11_p.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/image/qpixmap_x11_p.h b/src/gui/image/qpixmap_x11_p.h index 3de9a0f..835fea4 100644 --- a/src/gui/image/qpixmap_x11_p.h +++ b/src/gui/image/qpixmap_x11_p.h @@ -99,6 +99,7 @@ private: friend class QX11PaintEngine; friend class QX11WindowSurface; friend class QRasterWindowSurface; + friend class QGLContextPrivate; // Needs to access xinfo, gl_surface & flags void release(); @@ -108,14 +109,21 @@ private: Qt::HANDLE hd; - uint uninit : 1; - uint read_only : 1; + enum Flag { + NoFlags = 0x0, + Uninitialized = 0x1, + Readonly = 0x2, + InvertedWhenBoundToTexture = 0x4, + GlSurfaceCreatedWithAlpha = 0x8 + }; + uint flags; QX11Info xinfo; Qt::HANDLE x11_mask; Qt::HANDLE picture; Qt::HANDLE mask_picture; Qt::HANDLE hd2; // sorted in the default display depth + Qt::HANDLE gl_surface; #ifndef QT_NO_XRENDER void convertToARGB32(bool preserveContents = true); #endif |