Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | } xcb_glx_buffer_swap_complete_event_t; | 64 | } xcb_glx_buffer_swap_complete_event_t; | ||
65 | #endif | 65 | #endif | ||
66 | 66 | | |||
67 | #ifndef GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV | 67 | #ifndef GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV | ||
68 | #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7 | 68 | #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7 | ||
69 | #endif | 69 | #endif | ||
70 | 70 | | |||
71 | #include <tuple> | 71 | #include <tuple> | ||
72 | 72 | #include <memory> | |||
73 | #if __cplusplus <= 201103L | | |||
74 | namespace std { | | |||
75 | // C++-14 | | |||
76 | template<class T, class... Args> | | |||
77 | unique_ptr<T> make_unique(Args&&... args) { | | |||
78 | return unique_ptr<T>(new T(std::forward<Args>(args)...)); | | |||
79 | } | | |||
80 | } | | |||
81 | #endif | | |||
82 | | ||||
83 | 73 | | |||
84 | namespace KWin | 74 | namespace KWin | ||
85 | { | 75 | { | ||
86 | 76 | | |||
87 | SwapEventFilter::SwapEventFilter(xcb_drawable_t drawable, xcb_glx_drawable_t glxDrawable) | 77 | SwapEventFilter::SwapEventFilter(xcb_drawable_t drawable, xcb_glx_drawable_t glxDrawable) | ||
88 | : X11EventFilter(Xcb::Extensions::self()->glxEventBase() + XCB_GLX_BUFFER_SWAP_COMPLETE), | 78 | : X11EventFilter(Xcb::Extensions::self()->glxEventBase() + XCB_GLX_BUFFER_SWAP_COMPLETE), | ||
89 | m_drawable(drawable), | 79 | m_drawable(drawable), | ||
90 | m_glxDrawable(glxDrawable) | 80 | m_glxDrawable(glxDrawable) | ||
▲ Show 20 Lines • Show All 863 Lines • Show Last 20 Lines |