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

Side by Side Diff: talk/app/webrtc/videotrack.cc

Issue 1660103003: Delete FrameInput method and FrameInputWrapper class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment improvement. Created 4 years, 10 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 | « talk/app/webrtc/videotrack.h ('k') | talk/app/webrtc/videotrack_unittest.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 void VideoTrack::AddRenderer(VideoRendererInterface* renderer) { 53 void VideoTrack::AddRenderer(VideoRendererInterface* renderer) {
54 renderers_.AddRenderer(renderer); 54 renderers_.AddRenderer(renderer);
55 } 55 }
56 56
57 void VideoTrack::RemoveRenderer(VideoRendererInterface* renderer) { 57 void VideoTrack::RemoveRenderer(VideoRendererInterface* renderer) {
58 renderers_.RemoveRenderer(renderer); 58 renderers_.RemoveRenderer(renderer);
59 } 59 }
60 60
61 rtc::VideoSinkInterface<cricket::VideoFrame>* VideoTrack::GetSink() {
62 return &renderers_;
63 }
64
61 bool VideoTrack::set_enabled(bool enable) { 65 bool VideoTrack::set_enabled(bool enable) {
62 renderers_.SetEnabled(enable); 66 renderers_.SetEnabled(enable);
63 return MediaStreamTrack<VideoTrackInterface>::set_enabled(enable); 67 return MediaStreamTrack<VideoTrackInterface>::set_enabled(enable);
64 } 68 }
65 69
66 rtc::scoped_refptr<VideoTrack> VideoTrack::Create( 70 rtc::scoped_refptr<VideoTrack> VideoTrack::Create(
67 const std::string& id, VideoSourceInterface* source) { 71 const std::string& id, VideoSourceInterface* source) {
68 rtc::RefCountedObject<VideoTrack>* track = 72 rtc::RefCountedObject<VideoTrack>* track =
69 new rtc::RefCountedObject<VideoTrack>(id, source); 73 new rtc::RefCountedObject<VideoTrack>(id, source);
70 return track; 74 return track;
71 } 75 }
72 76
73 } // namespace webrtc 77 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/videotrack.h ('k') | talk/app/webrtc/videotrack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698