Add multi-layer support to the vgl interface.

Change-Id: I8d92a88809e2322cf8bfe3ce4bcd310c5085e89d