Commit 2fe91802 authored by Owen Lin's avatar Owen Lin Committed by Commit Bot

gpu_arc_vea: Remove completion callback after invocation.

The callback is used for only once. There is no need to keep it in
the callback map.

Bug: None
Test: None
Change-Id: I0a40faa323b1c9f98ad05f15bcb8451fe28041c2
Reviewed-on: https://chromium-review.googlesource.com/683915
Commit-Queue: Kuang-che Wu <kcwu@chromium.org>
Reviewed-by: default avatarKuang-che Wu <kcwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504321}
parent d06e9a05
......@@ -63,6 +63,7 @@ void GpuArcVideoEncodeAccelerator::BitstreamBufferReady(
auto iter = use_bitstream_cbs_.find(bitstream_buffer_id);
DCHECK(iter != use_bitstream_cbs_.end());
iter->second.Run(payload_size, key_frame, timestamp.InMicroseconds());
use_bitstream_cbs_.erase(iter);
}
void GpuArcVideoEncodeAccelerator::NotifyError(Error error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment