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

Unified Diff: media/cast/test/receiver.cc

Issue 82593005: Cast: Switching recevier to use media::VideoFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing includes Created 7 years 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
« no previous file with comments | « media/cast/test/linux_output_window.cc ('k') | media/cast/test/transport/transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/receiver.cc
diff --git a/media/cast/test/receiver.cc b/media/cast/test/receiver.cc
index 54cff9a1c3bbce967d401eb0f9d5aced72b8756c..356d14a9ce665095d7e15547e95d364e2ded29d9 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -15,6 +15,7 @@
#include "base/message_loop/message_loop.h"
#include "base/threading/thread.h"
#include "base/time/default_tick_clock.h"
+#include "media/base/video_frame.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
#include "media/cast/cast_receiver.h"
@@ -157,10 +158,10 @@ class ReceiveProcess : public base::RefCountedThreadSafe<ReceiveProcess> {
private:
friend class base::RefCountedThreadSafe<ReceiveProcess>;
- void DisplayFrame(scoped_ptr<I420VideoFrame> frame,
+ void DisplayFrame(const scoped_refptr<media::VideoFrame>& video_frame,
const base::TimeTicks& render_time) {
#ifdef OS_LINUX
- render_.RenderFrame(*frame);
+ render_.RenderFrame(video_frame);
#endif // OS_LINUX
// Print out the delta between frames.
if (!last_render_time_.is_null()){
« no previous file with comments | « media/cast/test/linux_output_window.cc ('k') | media/cast/test/transport/transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698