Fix input frame release timing in BitmapToHardwareBufferProcessor
Previously, the input frame was eagerly released as soon as the HardwareBuffer frame was emitted. This broke upstream backpressure and prematurely freed resources while the downstream pipeline was still processing the output buffer. This causes all the frames for a bitmap to be queued almost instantly This change defers releasing the input frame by chaining it inside the output frame's release callback, ensuring the input frame is only released when the downstream consumer finishes using it. PiperOrigin-RevId: 948616809 (cherry picked from commit eff29f0b58158b6db4d36fdfebc07306eb8d0fcf)
C
claincly committed
6aadef336bf422d31e2b5fc0a33072b64c9b6b72
Parent: 9ba5900
Committed by Tianyi Feng <tianyifeng@google.com>
on 7/15/2026, 11:42:36 PM