Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1234)

Unified Diff: content/renderer/media/rtc_video_decoder.cc

Issue 1067803002: Roll WebRTC 8931:8933, Libjingle 8930:8932 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove NativeHandleImpl Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index 66ef34975553b2fbcbbad61f92d4acc629c8b98b..6102601022935edbba8862c709d095252a1ef54d 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -13,14 +13,17 @@
#include "base/stl_util.h"
#include "base/synchronization/waitable_event.h"
#include "base/task_runner_util.h"
-#include "content/renderer/media/native_handle_impl.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
#include "media/base/bind_to_current_loop.h"
#include "media/renderers/gpu_video_accelerator_factories.h"
#include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/webrtc/base/bind.h"
#include "third_party/webrtc/common_video/interface/i420_video_frame.h"
#include "third_party/webrtc/system_wrappers/interface/ref_count.h"
+static void ReleaseFrame(scoped_refptr<media::VideoFrame> frame) {
+}
+
namespace content {
const int32 RTCVideoDecoder::ID_LAST = 0x3FFFFFFF;
@@ -388,13 +391,13 @@ void RTCVideoDecoder::PictureReady(const media::Picture& picture) {
DCHECK(inserted);
// Create a WebRTC video frame.
- webrtc::RefCountImpl<NativeHandleImpl>* handle =
- new webrtc::RefCountImpl<NativeHandleImpl>(frame);
- webrtc::I420VideoFrame decoded_image(handle,
+ webrtc::I420VideoFrame decoded_image(frame.get(),
picture.visible_rect().width(),
picture.visible_rect().height(),
timestamp,
- 0);
+ 0,
+ webrtc::kVideoRotation_0,
+ rtc::Bind(&ReleaseFrame, frame));
// Invoke decode callback. WebRTC expects no callback after Reset or Release.
{
« no previous file with comments | « content/renderer/media/native_handle_impl.cc ('k') | content/renderer/media/webrtc/media_stream_remote_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698