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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 base::ThreadChecker thread_checker_; | 54 base::ThreadChecker thread_checker_; |
55 | 55 |
56 const bool is_screencast_; | 56 const bool is_screencast_; |
57 bool running_; | 57 bool running_; |
58 base::TimeDelta first_frame_timestamp_; | 58 base::TimeDelta first_frame_timestamp_; |
59 // |buffer_| used if cropping is needed. It is created only if needed and | 59 // |buffer_| used if cropping is needed. It is created only if needed and |
60 // owned by WebRtcVideoCapturerAdapter. If its created, it exists until | 60 // owned by WebRtcVideoCapturerAdapter. If its created, it exists until |
61 // WebRtcVideoCapturerAdapter is destroyed. | 61 // WebRtcVideoCapturerAdapter is destroyed. |
62 uint8* buffer_; | 62 uint8* buffer_; |
63 size_t buffer_size_; | 63 size_t buffer_size_; |
64 scoped_ptr<cricket::CapturedFrame> captured_frame_; | |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); | 65 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); |
67 }; | 66 }; |
68 | 67 |
69 } // namespace content | 68 } // namespace content |
70 | 69 |
71 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 70 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
OLD | NEW |