Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | |||||
84 | 84 | | |||
85 | private: | 85 | private: | ||
86 | bool initBuffer(); | 86 | bool initBuffer(); | ||
87 | bool checkVersion(); | 87 | bool checkVersion(); | ||
88 | void initExtensions(); | 88 | void initExtensions(); | ||
89 | bool initRenderingContext(); | 89 | bool initRenderingContext(); | ||
90 | bool initFbConfig(); | 90 | bool initFbConfig(); | ||
91 | void initVisualDepthHashTable(); | 91 | void initVisualDepthHashTable(); | ||
92 | void setSwapInterval(int interval); | | |||
93 | Display *display() const { | 92 | Display *display() const { | ||
94 | return m_x11Display; | 93 | return m_x11Display; | ||
95 | } | 94 | } | ||
96 | 95 | | |||
97 | int visualDepth(xcb_visualid_t visual) const; | 96 | int visualDepth(xcb_visualid_t visual) const; | ||
98 | FBConfigInfo *infoForVisual(xcb_visualid_t visual); | 97 | FBConfigInfo *infoForVisual(xcb_visualid_t visual); | ||
99 | 98 | | |||
100 | /** | 99 | /** | ||
101 | * @brief The OverlayWindow used by this Backend. | 100 | * @brief The OverlayWindow used by this Backend. | ||
102 | */ | 101 | */ | ||
103 | OverlayWindow *m_overlayWindow; | 102 | OverlayWindow *m_overlayWindow; | ||
104 | Window window; | 103 | Window window; | ||
105 | GLXFBConfig fbconfig; | 104 | GLXFBConfig fbconfig; | ||
106 | GLXWindow glxWindow; | 105 | GLXWindow glxWindow; | ||
107 | GLXContext ctx; | 106 | GLXContext ctx; | ||
108 | QHash<xcb_visualid_t, FBConfigInfo *> m_fbconfigHash; | 107 | QHash<xcb_visualid_t, FBConfigInfo *> m_fbconfigHash; | ||
109 | QHash<xcb_visualid_t, int> m_visualDepthHash; | 108 | QHash<xcb_visualid_t, int> m_visualDepthHash; | ||
110 | std::unique_ptr<SwapEventFilter> m_swapEventFilter; | 109 | std::unique_ptr<SwapEventFilter> m_swapEventFilter; | ||
111 | int m_bufferAge; | 110 | int m_bufferAge; | ||
112 | bool m_haveMESACopySubBuffer = false; | 111 | bool m_haveMESACopySubBuffer = false; | ||
113 | bool m_haveMESASwapControl = false; | 112 | bool m_haveMESASwapControl = false; | ||
114 | bool m_haveEXTSwapControl = false; | 113 | bool m_haveEXTSwapControl = false; | ||
115 | bool m_haveINTELSwapEvent = false; | 114 | bool m_haveINTELSwapEvent = false; | ||
116 | bool haveSwapInterval = false; | | |||
117 | Display *m_x11Display; | 115 | Display *m_x11Display; | ||
118 | friend class GlxTexture; | 116 | friend class GlxTexture; | ||
119 | }; | 117 | }; | ||
120 | 118 | | |||
121 | /** | 119 | /** | ||
122 | * @brief Texture using an GLXPixmap. | 120 | * @brief Texture using an GLXPixmap. | ||
123 | */ | 121 | */ | ||
124 | class GlxTexture : public SceneOpenGLTexturePrivate | 122 | class GlxTexture : public SceneOpenGLTexturePrivate | ||
Show All 21 Lines |