Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/backend.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 109 | foreach (const QRect &r, region.rects()) { | |||
---|---|---|---|---|---|
111 | const int y0 = height - r.y() - r.height(); | 111 | const int y0 = height - r.y() - r.height(); | ||
112 | const int x1 = r.x() + r.width(); | 112 | const int x1 = r.x() + r.width(); | ||
113 | const int y1 = height - r.y(); | 113 | const int y1 = height - r.y(); | ||
114 | 114 | | |||
115 | glBlitFramebuffer(x0, y0, x1, y1, x0, y0, x1, y1, GL_COLOR_BUFFER_BIT, GL_NEAREST); | 115 | glBlitFramebuffer(x0, y0, x1, y1, x0, y0, x1, y1, GL_COLOR_BUFFER_BIT, GL_NEAREST); | ||
116 | } | 116 | } | ||
117 | } | 117 | } | ||
118 | 118 | | |||
119 | QVector<uint32_t> OpenGLBackend::supportedDrmFormats() | ||||
120 | { | ||||
121 | return QVector<uint32_t>(); | ||||
122 | } | ||||
123 | | ||||
124 | QVector<uint64_t> OpenGLBackend::supportedDrmModifiers(uint32_t format) | ||||
125 | { | ||||
126 | Q_UNUSED(format) | ||||
127 | | ||||
128 | return QVector<uint64_t>(); | ||||
129 | } | ||||
130 | | ||||
131 | KWayland::Server::LinuxDmabuf::Buffer *OpenGLBackend::importDmabufBuffer(const QVector<KWayland::Server::LinuxDmabuf::Plane> &planes, | ||||
132 | uint32_t format, | ||||
133 | const QSize &size, | ||||
134 | KWayland::Server::LinuxDmabuf::Flags flags) | ||||
135 | { | ||||
136 | Q_UNUSED(planes) | ||||
137 | Q_UNUSED(format) | ||||
138 | Q_UNUSED(size) | ||||
139 | Q_UNUSED(flags) | ||||
140 | | ||||
141 | return nullptr; | ||||
142 | } | ||||
143 | | ||||
119 | } | 144 | } |