Add a helper method for setting root layer size

This will be used by the compositor so that the top-level root layer
can track window size.
Merge pull request #112 from mrobinson/helper

Add a helper method for setting root layer size