Revert "Use swap code from native instead. Remove all other versions of it."

Broke movie playback.

This reverts commit 9fcb08a3265a78ea1d7f9981785a3e420d746c05.

Conflicts:
	native