Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/media/media_stream_video_track.h" | 5 #include "content/renderer/media/media_stream_video_track.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | |
|
perkj_chrome
2015/12/11 12:31:38
thanks
| |
| 14 | 13 |
| 15 namespace content { | 14 namespace content { |
| 16 | 15 |
| 17 namespace { | 16 namespace { |
| 18 void ResetCallback(scoped_ptr<VideoCaptureDeliverFrameCB> callback) { | 17 void ResetCallback(scoped_ptr<VideoCaptureDeliverFrameCB> callback) { |
| 19 // |callback| will be deleted when this exits. | 18 // |callback| will be deleted when this exits. |
| 20 } | 19 } |
| 21 | 20 |
| 22 // Empty method used for keeping a reference to the original media::VideoFrame. | 21 // Empty method used for keeping a reference to the original media::VideoFrame. |
| 23 // The reference to |frame| is kept in the closure that calls this method. | 22 // The reference to |frame| is kept in the closure that calls this method. |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 } | 272 } |
| 274 | 273 |
| 275 void MediaStreamVideoTrack::OnReadyStateChanged( | 274 void MediaStreamVideoTrack::OnReadyStateChanged( |
| 276 blink::WebMediaStreamSource::ReadyState state) { | 275 blink::WebMediaStreamSource::ReadyState state) { |
| 277 DCHECK(main_render_thread_checker_.CalledOnValidThread()); | 276 DCHECK(main_render_thread_checker_.CalledOnValidThread()); |
| 278 for (auto* sink : sinks_) | 277 for (auto* sink : sinks_) |
| 279 sink->OnReadyStateChanged(state); | 278 sink->OnReadyStateChanged(state); |
| 280 } | 279 } |
| 281 | 280 |
| 282 } // namespace content | 281 } // namespace content |
| OLD | NEW |