OSDN Git Service

Partially fix that beginning of animation is skipped
authorJorim Jaggi <jjaggi@google.com>
Wed, 22 Jul 2015 00:24:46 +0000 (17:24 -0700)
committerJorim Jaggi <jjaggi@google.com>
Wed, 22 Jul 2015 19:21:44 +0000 (19:21 +0000)
commitac73f1efea0cb23881571e18e87ffc7f388af7ad
tree75e96228da2aeebb80989db0a66826ba62f6cecb
parent6f64e737f046cd9ae13e260027781acfabaa4cba
Partially fix that beginning of animation is skipped

When waiting for all the windows that belong to an activity, we
skipped the main window, in case it didn't had a surface yet. This
was a problem because with SurfaceViews: They set it's visibility
extremely early in the app visibility change cycle. Then, they don't
block with the callback to SurfaceHolder.Callback2.surfaceRedrawNeeded,
so window manager thinks it has drawn the first frame already. We don't
even have a surface for the main window yet, but we start the app
transition already because we think the only interesting window for this
app token is the SurfaceView, which has supposedly already drawn.

Bug: 22207948
Change-Id: I2ddb274000fa08866e193f4fd8db3788fc55e0f1
services/core/java/com/android/server/wm/WindowManagerService.java