Deduplicate the surface creation code a bit.
Deduplicate the surface creation code a bit.

RevBy: Jan Arne Petersen

I would like later to add a signal connection and it would be good to
do it in one place.

RHawkeyed/framework,binlaten/framework,jpetersen/framework,Elleo/framework,jpetersen/framework,Elleo/framework,RHawkeyed/framework