Commit 5f3bfdde authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Switch WebRtcVideoFrameAdapter::CreateFrameAdapter away from base::Bind

... to use of the corresponding WTF counter part bind functionality.

BUG=787254
R=haraken@chromium.org

Change-Id: Icdd46e7cbe5da49110fe9fe9cbba911a6a56f396
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1984504Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#728227}
parent d259d02f
......@@ -6,6 +6,7 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/webrtc/common_video/include/video_frame_buffer.h"
#include "third_party/webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"
......@@ -166,8 +167,10 @@ WebRtcVideoFrameAdapter::CreateFrameAdapter() const {
}
// Keep |frame_| alive until |i420_frame| is destroyed.
i420_frame->AddDestructionObserver(base::BindOnce(
base::DoNothing::Once<scoped_refptr<media::VideoFrame>>(), frame_));
i420_frame->AddDestructionObserver(
ConvertToBaseOnceCallback(CrossThreadBindOnce(
base::DoNothing::Once<scoped_refptr<media::VideoFrame>>(),
frame_)));
IsValidFrame(*i420_frame);
return new rtc::RefCountedObject<FrameAdapter<webrtc::I420BufferInterface>>(
......
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