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> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // These methods are accessed from a libJingle worker thread. | 44 // These methods are accessed from a libJingle worker thread. |
45 cricket::CaptureState Start( | 45 cricket::CaptureState Start( |
46 const cricket::VideoFormat& capture_format) override; | 46 const cricket::VideoFormat& capture_format) override; |
47 void Stop() override; | 47 void Stop() override; |
48 bool IsRunning() override; | 48 bool IsRunning() override; |
49 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; | 49 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; |
50 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, | 50 bool GetBestCaptureFormat(const cricket::VideoFormat& desired, |
51 cricket::VideoFormat* best_format) override; | 51 cricket::VideoFormat* best_format) override; |
52 bool IsScreencast() const override; | 52 bool IsScreencast() const override; |
53 | 53 |
| 54 // Helper class used for copying texture backed frames. |
| 55 class TextureFrameCopier; |
| 56 const scoped_refptr<TextureFrameCopier> texture_copier_; |
| 57 |
54 // |thread_checker_| is bound to the libjingle worker thread. | 58 // |thread_checker_| is bound to the libjingle worker thread. |
55 base::ThreadChecker thread_checker_; | 59 base::ThreadChecker thread_checker_; |
56 | 60 |
57 const bool is_screencast_; | 61 const bool is_screencast_; |
58 bool running_; | 62 bool running_; |
59 | 63 |
60 media::VideoFramePool scaled_frame_pool_; | 64 media::VideoFramePool scaled_frame_pool_; |
61 | 65 |
62 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); | 66 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); |
63 }; | 67 }; |
64 | 68 |
65 } // namespace content | 69 } // namespace content |
66 | 70 |
67 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 71 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
OLD | NEW |