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

Side by Side Diff: chrome/renderer/media/cast_receiver_session_delegate.cc

Issue 955253002: Add metadata to media::VideoFrame and plumb it through IPC/MediaStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tommi's nits addressed Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/media/cast_receiver_session_delegate.h" 5 #include "chrome/renderer/media/cast_receiver_session_delegate.h"
6 6
7 #include "base/synchronization/waitable_event.h" 7 #include "base/synchronization/waitable_event.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 CastReceiverSessionDelegate::CastReceiverSessionDelegate() 10 CastReceiverSessionDelegate::CastReceiverSessionDelegate()
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void CastReceiverSessionDelegate::StopVideo() { 89 void CastReceiverSessionDelegate::StopVideo() {
90 frame_callback_ = content::VideoCaptureDeliverFrameCB(); 90 frame_callback_ = content::VideoCaptureDeliverFrameCB();
91 } 91 }
92 92
93 void CastReceiverSessionDelegate::OnDecodedVideoFrame( 93 void CastReceiverSessionDelegate::OnDecodedVideoFrame(
94 const scoped_refptr<media::VideoFrame>& video_frame, 94 const scoped_refptr<media::VideoFrame>& video_frame,
95 const base::TimeTicks& playout_time, 95 const base::TimeTicks& playout_time,
96 bool is_continous) { 96 bool is_continous) {
97 if (frame_callback_.is_null()) 97 if (frame_callback_.is_null())
98 return; 98 return;
99 frame_callback_.Run(video_frame, format_, playout_time); 99 frame_callback_.Run(video_frame, playout_time);
100 cast_receiver_->RequestDecodedVideoFrame(on_video_decoded_cb_); 100 cast_receiver_->RequestDecodedVideoFrame(on_video_decoded_cb_);
101 } 101 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698