wasm: delete unused requestUpdate() code path
Commit 5359d4 made it so that the window will always have a valid compositor pointer, which means that we don't have to keep the "no-compositor" fallback code path around. Change-Id: Id226e272937a7d488b27ea08dbc575fd9a039ac6 Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io> Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
parent
b692d7b268
commit
63a9430664
@ -394,19 +394,7 @@ qreal QWasmWindow::devicePixelRatio() const
|
||||
|
||||
void QWasmWindow::requestUpdate()
|
||||
{
|
||||
if (m_compositor) {
|
||||
m_compositor->requestUpdateWindow(this, QWasmCompositor::UpdateRequestDelivery);
|
||||
return;
|
||||
}
|
||||
|
||||
static auto frame = [](double time, void *context) -> int {
|
||||
Q_UNUSED(time);
|
||||
QWasmWindow *window = static_cast<QWasmWindow *>(context);
|
||||
window->m_requestAnimationFrameId = -1;
|
||||
window->deliverUpdateRequest();
|
||||
return 0;
|
||||
};
|
||||
m_requestAnimationFrameId = emscripten_request_animation_frame(frame, this);
|
||||
m_compositor->requestUpdateWindow(this, QWasmCompositor::UpdateRequestDelivery);
|
||||
}
|
||||
|
||||
bool QWasmWindow::hasTitleBar() const
|
||||
|
Loading…
Reference in New Issue
Block a user