public boolean applyTransactionOnDraw(@NonNull SurfaceControl.Transaction t) {
    if (mRemoved || !isHardwareEnabled()) {
        t.apply();
    } else {
        registerRtFrameCallback(frame -> mergeWithNextTransaction(t, frame));
    }
    return true;
}