diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-11-20 12:04:50 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-12-07 00:12:42 +0000 |
commit | a73de7ce2dde1128a14e968bcdd6c17b3d2d17f6 (patch) | |
tree | 7bb192bb23c04b218ec0040a9e00d939c79f4e96 /src/opengl | |
parent | 933497bace2ddfd9920100ccf155658cd2030c7c (diff) |
iOS: Harden logic for when it's safe to use the graphics hardware
To fix QTBUG-52493 we tied the exposed state of a window to the
application being in the foreground. This has the result of a
visible flash of black between hiding the launch screen and showing
the first frame of the application, as the application is still
waiting for UIApplicationStateActive to begin rendering, which
happens after iOS hides the launch screen.
According to the iOS OpenGL ES Programming Guide, it should be safe
to render GL in UIApplicationStateInactive as well, and even in
UIApplicationStateBackground, as long as the rendering finishes
before the UIApplicationDidEnterBackgroundNotification returns.
To ensure that we catch any bugs in this area, checks have been
added that verify that no rendering happens while in the background
state.
Task-number: QTBUG-63229
Task-number: QTBUG-52493
Task-number: QTBUG-55205
Change-Id: Ib42bedbeddd7479ab0fb5e5b7de9f5805658e111
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/opengl')
0 files changed, 0 insertions, 0 deletions