def METHOD_NAME(self):
    if self.current_buffer_index != INVALID_BUFFER_INDEX:
        self.ready_buffer_index.append(self.current_buffer_index)
        self.current_buffer_index = INVALID_BUFFER_INDEX
    self._swap_out_ready_buffers()