SIGN IN SIGN UP

Fix rotation handling and support dynamic size changes

- In `HardwareBufferToGlTextureConverter`, reset output format rotation degrees to 0 and swap dimensions since rotation is applied directly to the texture.

- In `FrameWriterGlTextureFrameConsumer`, force physical rotation of all frames to match the logical rotation of the first frame's output format.

- Insert Presentation effect to conform all subsequent frames to the target size established by the first frame, avoiding downstream encoder reconfiguration crashes.

- Clear FBO to opaque black (`glClear`) before drawing to prevent garbage borders in pillarbox/letterbox areas.

PiperOrigin-RevId: 947046427
(cherry picked from commit 9c87acffa08f8474fa99f28fe0059ee021f6715d)
C
claincly committed
7f74a1dac134a992b87d7c96bfb0074f6db4afed
Parent: 6f542f2
Committed by Tianyi Feng <tianyifeng@google.com> on 7/13/2026, 3:07:46 PM