Do viewport restore for Mali/Adreno Soc in native

Please merge https://github.com/hrydgard/native/pull/204 before this one.