Merge changes I4a3150c9,I0343abb4 into main

* changes:
  Surface: expose allowAllocation method
  Surface: Provide more useful/platform-y buffer methods