Mark layers as ready to swap if invisible

bug:5505364

This avoids the problem of waiting infinitely during initialization (when a
layer doesn't have content) for the layer to be ready.

Change-Id: I364eff66616ea304a68976d5ad06ce5fdb1a6d4b
1 file changed