UniquePtr and SharedSurface