toSize

Converts an Android android.util.Size to a Size.

This is an extension point for plugin modules, e.g. to implement a NativeCameraOutput's CameraOutput.currentResolution from its use case's resolutionInfo.