macOS: Deliver update requests even when view or layer needs display
This was a workaround to prevent visual artefacts from flushing GL during window resizing, but now that we skip the flush entirely in this situation we don't need to limit the update request delivery. Change-Id: I84bd48e4e2fc5a03e9d27d5f9b4b32b8098e56a5 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>bb10
parent
dcbe25bbbb
commit
4b346aedf8
|
|
@ -1512,17 +1512,6 @@ bool QCocoaWindow::updatesWithDisplayLink() const
|
|||
|
||||
void QCocoaWindow::deliverUpdateRequest()
|
||||
{
|
||||
// Don't send update requests for views that need display, as the update
|
||||
// request doesn't carry any information about dirty rects, so the app
|
||||
// may end up painting a smaller region than required. (For some reason
|
||||
// the layer and view's needsDisplay status isn't always in sync, even if
|
||||
// the view is layer-backed, not layer-hosted, so we check both).
|
||||
if (m_view.layer.needsDisplay || m_view.needsDisplay) {
|
||||
qCDebug(lcQpaDrawing) << "View needs display, deferring update request for" << window();
|
||||
requestUpdate();
|
||||
return;
|
||||
}
|
||||
|
||||
qCDebug(lcQpaDrawing) << "Delivering update request to" << window();
|
||||
QPlatformWindow::deliverUpdateRequest();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue