| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; | 77 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; |
| 78 | 78 |
| 79 SizeCallback size_callback_; | 79 SizeCallback size_callback_; |
| 80 | 80 |
| 81 // Timer to call CaptureNextFrame(). | 81 // Timer to call CaptureNextFrame(). |
| 82 scoped_ptr<base::RepeatingTimer> capture_timer_; | 82 scoped_ptr<base::RepeatingTimer> capture_timer_; |
| 83 | 83 |
| 84 // Video frame is kept between captures to avoid YUV conversion for static | 84 // Video frame is kept between captures to avoid YUV conversion for static |
| 85 // parts of the screen. | 85 // parts of the screen. |
| 86 scoped_ptr<cricket::VideoFrame> yuv_frame_; | 86 rtc::scoped_refptr<webrtc::I420Buffer> yuv_frame_; |
| 87 | 87 |
| 88 bool capture_pending_ = false; | 88 bool capture_pending_ = false; |
| 89 | 89 |
| 90 base::WeakPtrFactory<WebrtcVideoCapturerAdapter> weak_factory_; | 90 base::WeakPtrFactory<WebrtcVideoCapturerAdapter> weak_factory_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter); | 92 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoCapturerAdapter); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace protocol | 95 } // namespace protocol |
| 96 } // namespace remoting | 96 } // namespace remoting |
| 97 | 97 |
| 98 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 98 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
| 99 | |
| OLD | NEW |