Introduce QWindowSystemInterface::handleSynchronousCloseEvent
authorGunnar Sletta <gunnar.sletta@nokia.com>
Fri, 25 Nov 2011 13:02:12 +0000 (14:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 Nov 2011 13:44:39 +0000 (14:44 +0100)
commitac188d9582af49fd1bd8de992fddd4740abb5ce3
treef47b8425c58175803318bdab3cf2a47bd943f177
parent32ce1172ba456be48163f76a5fbae82020b32a56
Introduce QWindowSystemInterface::handleSynchronousCloseEvent

And use it from the Cocoa backend.

In general, for threaded GL rendering to work, any function that
affect the surface must be synchronous, so the implementor (such as
QQuickCanvas) can pick it up and block until the GL context has
released the surface. Otherwise, we will crash.

Change-Id: Id8484dac7452fe96fa80ade4ea321145f32124b4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qwindowsysteminterface_qpa.cpp
src/gui/kernel/qwindowsysteminterface_qpa.h
src/plugins/platforms/cocoa/qcocoawindow.mm