This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.