Give the hook a chance to change the surface format

Change-Id: Ide71eba43a07d533a684db2ea79e08e742a008a6
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>