OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "media/base/video_capture_types.h" | |
17 #include "media/base/video_frame.h" | 16 #include "media/base/video_frame.h" |
18 #include "media/base/video_frame_pool.h" | 17 #include "media/base/video_frame_pool.h" |
| 18 #include "media/capture/video_capture_types.h" |
19 #include "third_party/webrtc/media/base/videocapturer.h" | 19 #include "third_party/webrtc/media/base/videocapturer.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is | 23 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is |
24 // used for VideoCapturing in libJingle and especially in PeerConnections. | 24 // used for VideoCapturing in libJingle and especially in PeerConnections. |
25 // The class is created and destroyed on the main render thread. | 25 // The class is created and destroyed on the main render thread. |
26 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. | 26 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. |
27 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of | 27 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of |
28 // webrtc::VideoTrackSourceInterface in libJingle. The implementation of | 28 // webrtc::VideoTrackSourceInterface in libJingle. The implementation of |
(...skipping 29 matching lines...) Expand all Loading... |
58 bool running_; | 58 bool running_; |
59 | 59 |
60 media::VideoFramePool scaled_frame_pool_; | 60 media::VideoFramePool scaled_frame_pool_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); | 62 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
66 | 66 |
67 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 67 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
OLD | NEW |