Added surface management functions according to the work-in-progress specification.