Changeset View
Changeset View
Standalone View
Standalone View
backends/drm/scene_qpainter_drm_backend.cpp
Show All 13 Lines | |||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "scene_qpainter_drm_backend.h" | 20 | #include "scene_qpainter_drm_backend.h" | ||
21 | #include "drm_backend.h" | 21 | #include "drm_backend.h" | ||
22 | #include "drm_output.h" | ||||
22 | #include "virtual_terminal.h" | 23 | #include "virtual_terminal.h" | ||
23 | 24 | | |||
24 | namespace KWin | 25 | namespace KWin | ||
25 | { | 26 | { | ||
26 | 27 | | |||
27 | DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend) | 28 | DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend) | ||
28 | : QObject() | 29 | : QObject() | ||
29 | , QPainterBackend() | 30 | , QPainterBackend() | ||
Show All 14 Lines | 39 | [this] (DrmOutput *o) { | |||
44 | if (it == m_outputs.end()) { | 45 | if (it == m_outputs.end()) { | ||
45 | return; | 46 | return; | ||
46 | } | 47 | } | ||
47 | delete (*it).buffer[0]; | 48 | delete (*it).buffer[0]; | ||
48 | delete (*it).buffer[1]; | 49 | delete (*it).buffer[1]; | ||
49 | m_outputs.erase(it); | 50 | m_outputs.erase(it); | ||
50 | } | 51 | } | ||
51 | ); | 52 | ); | ||
52 | } | 53 | } | ||
53 | 54 | | |||
54 | DrmQPainterBackend::~DrmQPainterBackend() | 55 | DrmQPainterBackend::~DrmQPainterBackend() | ||
55 | { | 56 | { | ||
56 | for (auto it = m_outputs.begin(); it != m_outputs.end(); ++it) { | 57 | for (auto it = m_outputs.begin(); it != m_outputs.end(); ++it) { | ||
57 | delete (*it).buffer[0]; | 58 | delete (*it).buffer[0]; | ||
graesslin: unrelated to the split | |||||
graesslin: still unrelated | |||||
58 | delete (*it).buffer[1]; | 59 | delete (*it).buffer[1]; | ||
59 | } | 60 | } | ||
60 | } | 61 | } | ||
61 | 62 | | |||
62 | void DrmQPainterBackend::initOutput(DrmOutput *output) | 63 | void DrmQPainterBackend::initOutput(DrmOutput *output) | ||
63 | { | 64 | { | ||
64 | Output o; | 65 | Output o; | ||
65 | auto initBuffer = [&o, output, this] (int index) { | 66 | auto initBuffer = [&o, output, this] (int index) { | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |
unrelated to the split