SIGN IN SIGN UP

Prevent duplicate Choreographer callbacks in VideoFrameReleaseHelper

The VSyncSampler in VideoFrameReleaseHelper can register multiple Choreographer FrameCallbacks or VsyncCallbacks if not properly unregistered. This change ensures that any pending callbacks are removed before new ones are posted, preventing excessive calls to doFrame or onVsync, especially after multiple onDisplayChanged events.

PiperOrigin-RevId: 941047684
M
michaelkatz committed
fd8a6b2c5750729120bee3b9bb52a8603c96da1d
Parent: d76ed20
Committed by Copybara-Service <copybara-worker@google.com> on 7/1/2026, 1:02:13 PM