Check and fail early if requested wallpaper size exceeds maximum texture size.

This fixes an issue where OpenGL initialization succeeds but buffer
allocation fails because the requested wallpaper size is too large
(or otherwise unsupported) by the graphics hardware. This fixes an
issue where SystemUI crashes constantly on the PandaBoard when
connected to a full HD display. Tested only on PandaBoard, no access
to alternative hardware.

https://github.com/SlimRoms/frameworks_base/commit/2e97a5c5fbefa3fee1a44458b85ee8e0bdb43db3

PS3:  Fixed all whitespaces

Change-Id: I44cd1b00d800034e87530c1985e4be99084c563b
Merge "Check and fail early if requested wallpaper size exceeds maximum texture size." into jb42