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

Unified Diff: media/cast/test/utility/in_process_receiver.cc

Issue 225023010: [Cast] Refactor/clean-up VideoReceiver to match AudioReceiver as closely as possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: media/cast/test/utility/in_process_receiver.cc
diff --git a/media/cast/test/utility/in_process_receiver.cc b/media/cast/test/utility/in_process_receiver.cc
index 2b67666e7388727603e3dd60324b0fbc2666dbcf..4bc9e60c599e51b2fe05923ec7b81d23e109be2b 100644
--- a/media/cast/test/utility/in_process_receiver.cc
+++ b/media/cast/test/utility/in_process_receiver.cc
@@ -120,9 +120,13 @@ void InProcessReceiver::GotAudioFrame(scoped_ptr<AudioBus> audio_frame,
void InProcessReceiver::GotVideoFrame(
const scoped_refptr<VideoFrame>& video_frame,
- const base::TimeTicks& render_time) {
+ const base::TimeTicks& playout_time,
+ bool is_continuous) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
- OnVideoFrame(video_frame, render_time);
+ if (video_frame) {
+ // TODO(miu): Pass |is_continuous| flag.
+ OnVideoFrame(video_frame, playout_time);
+ }
PullNextVideoFrame();
}

Powered by Google App Engine
This is Rietveld 408576698