On android, WebRender renders to Surface(ANativeWindow) of SurfaceView. The SurfaceView's rotation is automatically handled by android os. https://github.com/sotaroikeda/firefox-diagrams/blob/master/mobile/mobile_GeckoSession_68.pdf
Bug 1370672 Comment 8 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
On android, WebRender renders to Surface(ANativeWindow) of SurfaceView. The SurfaceView's rotation is automatically handled by android os, though it needs to handle size change. https://github.com/sotaroikeda/firefox-diagrams/blob/master/mobile/mobile_GeckoSession_68.pdf