OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/video_destination_handler.h" | 5 #include "content/renderer/media/video_destination_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "content/renderer/media/media_stream.h" | 12 #include "content/renderer/media/media_stream.h" |
13 #include "content/renderer/media/media_stream_dependency_factory.h" | 13 #include "content/renderer/media/media_stream_dependency_factory.h" |
14 #include "content/renderer/media/media_stream_registry_interface.h" | 14 #include "content/renderer/media/media_stream_registry_interface.h" |
15 #include "content/renderer/pepper/ppb_image_data_impl.h" | 15 #include "content/renderer/pepper/ppb_image_data_impl.h" |
16 #include "content/renderer/render_thread_impl.h" | 16 #include "content/renderer/render_thread_impl.h" |
17 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 17 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
| 18 #include "third_party/WebKit/public/platform/WebURL.h" |
18 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" | 19 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" |
| 20 #include "url/gurl.h" |
19 | 21 |
20 using cricket::CaptureState; | 22 using cricket::CaptureState; |
21 using cricket::VideoFormat; | 23 using cricket::VideoFormat; |
22 using webrtc::VideoTrackInterface; | 24 using webrtc::VideoTrackInterface; |
23 using webrtc::VideoTrackVector; | 25 using webrtc::VideoTrackVector; |
24 | 26 |
25 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA; | 27 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA; |
26 | 28 |
27 namespace content { | 29 namespace content { |
28 | 30 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 VideoTrackVector video_tracks = native_stream->GetVideoTracks(); | 202 VideoTrackVector video_tracks = native_stream->GetVideoTracks(); |
201 // Currently one supports one video track per media stream. | 203 // Currently one supports one video track per media stream. |
202 DCHECK(video_tracks.size() == 1); | 204 DCHECK(video_tracks.size() == 1); |
203 | 205 |
204 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer); | 206 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer); |
205 return true; | 207 return true; |
206 } | 208 } |
207 | 209 |
208 } // namespace content | 210 } // namespace content |
209 | 211 |
OLD | NEW |