| 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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/renderer/media/media_stream_dependency_factory.h" | 10 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 11 #include "content/renderer/media/media_stream_registry_interface.h" | 11 #include "content/renderer/media/media_stream_registry_interface.h" |
| 12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamTrack
.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr
y.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr
y.h" |
| 15 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 16 | 16 |
| 17 using cricket::CaptureState; | 17 using cricket::CaptureState; |
| 18 using cricket::VideoFormat; | 18 using cricket::VideoFormat; |
| 19 using webkit::ppapi::PPB_ImageData_Impl; | 19 using webkit::ppapi::PPB_ImageData_Impl; |
| 20 using webrtc::VideoTrackInterface; | 20 using webrtc::VideoTrackInterface; |
| 21 using webrtc::VideoTrackVector; | 21 using webrtc::VideoTrackVector; |
| 22 | 22 |
| 23 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA; | 23 static const cricket::FourCC kEffectColorFormat = cricket::FOURCC_BGRA; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 VideoTrackVector video_tracks = native_stream->GetVideoTracks(); | 195 VideoTrackVector video_tracks = native_stream->GetVideoTracks(); |
| 196 // Currently one supports one video track per media stream. | 196 // Currently one supports one video track per media stream. |
| 197 DCHECK(video_tracks.size() == 1); | 197 DCHECK(video_tracks.size() == 1); |
| 198 | 198 |
| 199 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer); | 199 *frame_writer = new PpFrameWriterProxy(video_tracks[0].get(), writer); |
| 200 return true; | 200 return true; |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace content | 203 } // namespace content |
| 204 | 204 |
| OLD | NEW |