Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/hwcomposer/egl_hwcomposer_backend.cpp
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | 123 | if (eglMakeCurrent(eglDisplay(), surface(), surface(), context()) == EGL_FALSE) { | |||
---|---|---|---|---|---|
125 | return false; | 125 | return false; | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | EGLint error = eglGetError(); | 128 | EGLint error = eglGetError(); | ||
129 | if (error != EGL_SUCCESS) { | 129 | if (error != EGL_SUCCESS) { | ||
130 | qCWarning(KWIN_HWCOMPOSER) << "Error occurred while creating context " << error; | 130 | qCWarning(KWIN_HWCOMPOSER) << "Error occurred while creating context " << error; | ||
131 | return false; | 131 | return false; | ||
132 | } | 132 | } | ||
133 | | ||||
134 | const QSize overall = m_backend->size(); | ||||
zzag: const | |||||
135 | glViewport(0, 0, overall.width(), overall.height()); | ||||
136 | | ||||
133 | return true; | 137 | return true; | ||
134 | } | 138 | } | ||
135 | 139 | | |||
136 | void EglHwcomposerBackend::present() | 140 | void EglHwcomposerBackend::present() | ||
137 | { | 141 | { | ||
138 | if (lastDamage().isEmpty()) { | 142 | if (lastDamage().isEmpty()) { | ||
139 | return; | 143 | return; | ||
140 | } | 144 | } | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
const