| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIDEO_CAPTURE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Video format requested by the client to this class via StartCapture(). | 144 // Video format requested by the client to this class via StartCapture(). |
| 145 media::VideoCaptureParams params_; | 145 media::VideoCaptureParams params_; |
| 146 | 146 |
| 147 // First captured frame reference time sent from browser process side. | 147 // First captured frame reference time sent from browser process side. |
| 148 base::TimeTicks first_frame_ref_time_; | 148 base::TimeTicks first_frame_ref_time_; |
| 149 | 149 |
| 150 VideoCaptureState state_; | 150 VideoCaptureState state_; |
| 151 | 151 |
| 152 base::ThreadChecker io_thread_checker_; | 152 base::ThreadChecker io_thread_checker_; |
| 153 | 153 |
| 154 // Flag set to True when captured frames are dropped due to arriving earlier |
| 155 // than OnStarted event. Then a frame refresh request will be sent out later |
| 156 // when OnStarted arrives, for a new frame to start the video call with. |
| 157 bool should_request_refresh_frame_on_started_; |
| 158 |
| 154 // WeakPtrFactory pointing back to |this| object, for use with | 159 // WeakPtrFactory pointing back to |this| object, for use with |
| 155 // media::VideoFrames constructed in OnBufferReceived() from buffers cached | 160 // media::VideoFrames constructed in OnBufferReceived() from buffers cached |
| 156 // in |client_buffers_|. | 161 // in |client_buffers_|. |
| 157 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; | 162 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; |
| 158 | 163 |
| 159 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 164 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
| 160 }; | 165 }; |
| 161 | 166 |
| 162 } // namespace content | 167 } // namespace content |
| 163 | 168 |
| 164 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 169 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |