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